Results 1 to 3 of 3

Thread: Help With Holding Keys Down

  1. #1
    Join Date
    Nov 2008
    Location
    East bay -- California
    Posts
    91
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help With Holding Keys Down

    How do you set a key to held down , not just pressed once but held down for an amount of time because i dont want to have to spam my script with keydown(38) keyup(38)

    or

    could someone tell me how to ake a loop that spams that button only because i have more keys in my script and i dont want to spam them all btw here is the key spamming part of the script

    SCAR Code:
    KeyDown(9);
    KeyUp(9);
    wait(500);
    KeyDown(32);
    KeyUp(32);
    wait(500);
    KeyDown(9);
    KeyUP(9);
    KeyDown(38);
    KeyUp(38);
    KeyDown(38);
    KeyUp(38);
    KeyDown(38);
    KeyUp(38);;

    but i only want to spam this part

    SCAR Code:
    KeyDown(38);
    KeyUp(38);
    KeyDown(38);
    KeyUp(38);
    KeyDown(38);
    KeyUp(38);


    (im using for a game where you need to hold down certain keys)

    All Help Appreciated !

  2. #2
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    SCAR Code:
    KeyDown(38);
    Wait(5000); //5 sec press time.
    KeyUp(38);
    Ce ne sont que des gueux


  3. #3
    Join Date
    Nov 2008
    Location
    East bay -- California
    Posts
    91
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you so much


    Edit::I just tried it and it didnt work

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with holding keys down
    By shadohead in forum OSR Help
    Replies: 5
    Last Post: 01-29-2009, 09:08 AM
  2. VK Keys?
    By Macro_FTW in forum OSR Help
    Replies: 1
    Last Post: 11-12-2008, 04:22 PM
  3. holding keys
    By RudeBoiAlex in forum OSR Help
    Replies: 8
    Last Post: 02-19-2007, 02:28 AM

Posting Permissions

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