Sharn Posted March 5, 2008 Posted March 5, 2008 I have created this simple script: ------------------------------------------------- Run("C:\windows\Notepad.exe") Send("{a down}") Sleep(5000) Send("{a up}") Exit ------------------------------------------------- But in the notepad screen appears only ONE "a" character also if modify the sleep directive. Why?
Dampe Posted March 5, 2008 Posted March 5, 2008 Try this: AutoItSetOption ("SendKeyDownDelay", 5000) Run("C:\windows\Notepad.exe") Send("a") AutoItSetOption ("SendKeyDownDelay", 5)
BigDod Posted March 5, 2008 Posted March 5, 2008 I have created this simple script:-------------------------------------------------Run("C:\windows\Notepad.exe")Send("{a down}")Sleep(5000)Send("{a up}")Exit-------------------------------------------------But in the notepad screen appears only ONE "a" character also if modify the sleep directive.Why?After you Send("{a down}") you have told the script to Sleep(5000) so it only manages to send "a" once before it sleeps. Instead of using sleep lookup Opt("SendKeyDownDelay", 1) in the help file. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
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