Results 1 to 4 of 4

Thread: How do I...

  1. #1
    Join Date
    Aug 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do I...

    How do I use SendKeys or TypeSend to press the arrows keys?
    I'm still in the process of trying to master most of the basics by scripting some internet games, but I can't seem to make SCAR press the arrow keys...

    Help anyone?

    EDIT: And by the way what is wrong when I get the error:

    [Error] (14689:1): Duplicate identifier '' in script

  2. #2
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    Make sure you have the latest SRL and Scar 3.12c

    all you have to really do is this...

    SCAR Code:
    Program New;
    {.include SRL/SRL.scar}

    begin
      SetupSRL;
      TypeSend('W00t!');
    end.

    EDIT: just use munks post....i obviously dont read good lol sorry
    METAL HEAD FOR LIFE!!!

  3. #3
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    press f1 in SCAR to get the manual. Then use find (ctrl+f). Helps alot. Of course for this you could use one of the 'sendArrow' procedures, but I would suggest somethin like:
    SCAR Code:
    keyDown(VK_UP);  // VK_UP, VK_LEFT, VK_RIGHT, or VK_DOWN
    wait(100+random(100));
    keyUp(VK_UP);

  4. #4
    Join Date
    Aug 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, but I'll use the 'SendArrow' procedures as it's not for RS, just for some internet game, thanks anyway, I'll use that if I'm ever going to make a good RS script

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
  •