Jump to content
Sign in to follow this  

Simulating Held Keys With Send()

Recommended Posts


A program I wish to automate requires that I hold the 's' key down for a little less than a second. After checking the online documentation and searching the forums, I found that the only suggested way to do this

Send("{s down}")


Send("{s up}")

does not help me. To test this, I wrote


WinActivate("Untitled - Notepad")

WinWaitActive("Untitled - Notepad")

Send("{s down}")


Send("{s up}")

figuring that if I held 's' for ten seconds in notepad, multiple 's's would appear in the edit box. This this didn't work for me either. Any ideas?

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