Jump to content
Sign in to follow this  
bigassmuffin

Simple Question

Recommended Posts

bigassmuffin

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?

Share this post


Link to post
Share on other sites
Valuater

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites
exodius

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}" )

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  

×