Jump to content

Recommended Posts

Posted

I know how to move the mouse, with the

MouseMove(0, 0) command

and press a key..

Send("{ALT}")

and various simple thihngs ;P

....

but how can I get it to hold a key down? like holding the buttin alt down for lets say..5 seconds?

Posted

from help

To hold a key down (generally only useful for games)

Send("{a down}") ;Holds the A key down

Send("{a up}") ;Releases the A key

8)

So a slight permutation of what ^^^ said...

Send ("{a down}")
Sleep ( 5000 )
Send ("{a up}" )

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