Hokuyo Posted March 15, 2006 Share Posted March 15, 2006 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}") Sleep(800) Send("{s up}") does not help me. To test this, I wrote Run("notepad.exe") WinActivate("Untitled - Notepad") WinWaitActive("Untitled - Notepad") Send("{s down}") Sleep(10000) 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? Link to comment Share on other sites More sharing options...
CyberSlug Posted March 15, 2006 Share Posted March 15, 2006 Look here for info about this issue:http://www.autoitscript.com/forum/index.ph...ndpost&p=159120 Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Nuffilein805 Posted March 15, 2006 Share Posted March 15, 2006 try: $a = timerinit() while timerdiff($a) < 10000 send ("s") wend that should fix your problem my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now