Results 1 to 9 of 9

Thread: Beep

  1. #1
    Join Date
    Sep 2014
    Posts
    74
    Mentioned
    2 Post(s)
    Quoted
    34 Post(s)

    Default Beep

    Hey,

    How can I make my program play a beep after X seconds?

    I know I could use the PlaySound() function, and just download a beep sound, but is there any other way?

    I downloaded a plugin from a little while back, but it doesn't work (for me).

    Thanks.

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by TomTop View Post
    How can I make my program play a beep..
    Simba Code:
    writeln(#7);
    Last edited by Brandon; 10-29-2014 at 08:10 PM.
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Simba Code:
    writeln(#7);
    Writeln plays sounds? Even I didn't know that. Jeebus.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Writeln plays sounds? Even I didn't know that. Jeebus.
    This is language agnostic -- as far as I am aware. http://www.asciitable.com/

    Character 0x07.
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Simba Code:
    writeln(#7);
    That's awesome.

    Are there other sounds that can be made?
    Last edited by Incurable; 10-30-2014 at 01:34 AM.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

  6. #6
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Incurable View Post
    That's awesome.

    Are there other sounds that can be made?

    Yes. You can change the pitch and hz of the output sound. I don't remember how though. The above one is called System Bell. There's a few others that happen when you print Unicode Characters. There is a function for the rest though. Not sure if Pascal has it or not.
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    May 2008
    Location
    Mental Hospital
    Posts
    414
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    This is language agnostic -- as far as I am aware. http://www.asciitable.com/

    Character 0x07.
    Is there a way I could get a hard copy of your brain?

  8. #8
    Join Date
    Sep 2014
    Posts
    74
    Mentioned
    2 Post(s)
    Quoted
    34 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Simba Code:
    writeln(#7);
    Wow, thanks.
    Is there any other code that'll make it run longer?

  9. #9
    Join Date
    Jun 2014
    Location
    Lithuania
    Posts
    475
    Mentioned
    27 Post(s)
    Quoted
    200 Post(s)

    Default

    Quote Originally Posted by TomTop View Post
    Wow, thanks.
    Is there any other code that'll make it run longer?
    for i:0 to 100 do
    begin
    writeln(#7)
    end;

    for the worst occasion?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •