adam298 Posted August 9, 2010 Share Posted August 9, 2010 Func start() While 1 Sleep(2000) Send("{LEFT down}") Sleep(10000) Send("{LEFT up}") WEnd EndFunc I got this little code. What its suppose to do is hold down the left arrow key for 10sc, but when i test ran this on notepad by typing bunch of letters and seeing if it would arrow over all the way to the left of the text it only presses the Left Arrow key once every 12sc... how then do u get it to hold down an arrow key for a specific time? Link to comment Share on other sites More sharing options...
czardas Posted August 9, 2010 Share Posted August 9, 2010 When you hold down the arrow key, it is no different from repeatedly pressing it once. The instruction is just repeated at faster intervals. The code you have written presses the arrow key and then sleeps for 10 seconds. That's why it doesn't work. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Realm Posted August 9, 2010 Share Posted August 9, 2010 seeing if it would arrow over all the way to the left of the textIf you just want to move the cursor to the far left side of the current line in your text editor try Send("{HOME}") My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
adam298 Posted August 9, 2010 Author Share Posted August 9, 2010 so for example a game where u have to hold the arrow key to charge power and release to it to shoot would register multiple left arrow clicks are holding it down? How fast would it have to be Link to comment Share on other sites More sharing options...
adam298 Posted August 15, 2010 Author Share Posted August 15, 2010 Still looking for answer.. my game doesnt register it as holding it down Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now