Jump to content
Sign in to follow this  
adam298

Holding Arrows Down

Recommended Posts

adam298

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?

Share this post


Link to post
Share on other sites
czardas

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.

Share this post


Link to post
Share on other sites
Realm

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.  

Share this post


Link to post
Share on other sites
adam298

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

Share this post


Link to post
Share on other sites
adam298

Still looking for answer.. my game doesnt register it as holding it down

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.