Results 1 to 4 of 4

Thread: Annoying...

  1. #1
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Annoying...

    This is probably a case study in why i shouldn't have internet access when I get bored.
    Just make sure you enable API calls in SCAR. Laugh in triumph as your hapless victim switches off his speakers only to find that the sound is coming from inside the computer!
    SCAR Code:
    program Beep;

    //Enable Script > Allow API Calls for this to work

    //Range of freq is 37 (strange clicking/whirring noise) to 32767 (inaudible, only hear clicking of speaker)
    //the most annoying one is about 14000 - 15000
    //time setting is self-explanatory

    function Beep(freq, dur : LongInt):boolean; external 'Beep@Kernel32.dll stdcall';
    var
      i : integer;
    Begin
      GetSelf.hide;
      repeat
        //confusion mode
        writeln(booltostr(Beep(RandomRange(37, 32767), RandomRange(500, 750))));
        //annoyance mode (use with care ;] )
        //writeln(booltostr(Beep(14500, 2000)));
        i := i + 1;
      until(i = 5);
      GetSelf.Show;
    End.

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Lol! This is pretty Cool. What exactly are API calls though?
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The Windows API is basically the set of functions that are available to programs in Windows, and they are stored in/called from all the DLLs in WINDOWS/system32.
    So an API call is basically just using a premade function from Windows.

  4. #4
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Gah, is there any way to stop it after it starts? I 'accidentally' set the duration for like 99999999 now it won't stop

    Pretty cool though

    EDIT: Oh, you can just execute another one

    Crap, nevermind -_-

    EDIT: Ah, you can just close SCAR

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. So annoying. Help!
    By BKNYKavkaz in forum OSR Help
    Replies: 4
    Last Post: 04-29-2008, 01:54 PM

Posting Permissions

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