Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

seeing if it would arrow over all the way to the left of the text

If 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. 

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...