Results 1 to 11 of 11

Thread: Command Question - No Flame

  1. #1
    Join Date
    Jul 2009
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Command Question - No Flame

    Don't you flame me.

    I google'd
    I looked through two tutorials
    and two SCAR manuals.

    But..
    Wtf is the command to get scar to press the arrow keys?!

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    Jul 2009
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay, I used the commands. It says it compiles, it says it runs. But the commands aren't being put into action?

  4. #4
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  5. #5
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Code:
    Left Arrow - 37
    Up Arrow - 38
    Right Arrow - 39
    Down Arrow - 40
    eg.

    SCAR Code:
    KeyDown(40); // down arrow - down!
    KeyUp(40); // down arrow - up!

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Janilabo View Post
    Code:
    Left Arrow - 37
    Up Arrow - 38
    Right Arrow - 39
    Down Arrow - 40
    eg.

    SCAR Code:
    KeyDown(40); // down arrow - down!
    KeyUp(40); // down arrow - up!
    dont use numbers
    it will get confuzzleing
    if you do
    SCAR Code:
    KeyDown(VK_DOWN);
    KeyUp(VK_DOWN);
    then it will do the same and be easier to read

    ~shut

  7. #7
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Well, I agree with you Shut, but not totally, as there aint constants set for every single key.
    That's the reason I am used to the numbers instead. But yeah, it's matter of taste, really..

    Anyways, HERE is useful listing of KeyCodes (by KyleGut3 from the "good ol' times" )

  8. #8
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Janilabo View Post
    Well, I agree with you Shut, but not totally, as there aint constants set for every single key.
    No, but there are for pretty much every key you'd ever need, other than numbers and letters, in which case you could do something like: KeyDown(GetKeyCode('a'));

  9. #9
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    No, this wont work

    KeyDown(40); // down arrow - down!
    KeyUp(40); // down arrow - up!

    It will click it too fast you need to do something like

    KeyDown(40); // down arrow - down!
    Wait(100+random(100));
    KeyUp(40); // down arrow - up!
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  10. #10
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Quote Originally Posted by cycrosism View Post
    No, this wont work

    KeyDown(40); // down arrow - down!
    KeyUp(40); // down arrow - up!

    It will click it too fast you need to do something like

    KeyDown(40); // down arrow - down!
    Wait(100+random(100));
    KeyUp(40); // down arrow - up!
    Hmmm.. Works fine for me? (with Notepad/Word/SCAR's editor part...)
    Sure, it doesn't work for RuneScape or other games (& it SHOULD NOT be used for RuneScape/other games!), but it was only a small example.
    That's why I didn't include mainloop for it, either..

    But, you are right, it's good to add the [random] wait between the commands!

  11. #11
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    SendArrow(0); : Up
    SendArrow(1); : Right
    .. (2); : Down
    .. (3); : Left



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
  •