Guest PapyToxik Posted September 8, 2005 Posted September 8, 2005 (edited) Quote i think one of us may be misinterpretting his intent... (would not be a first for me) to me it looks like he wants the key held for ten seconds, but is unhappy with the 10 second delay prior to the send.I want the key to be simply held for 10 seconds. I don't this pause before the send. Hope you understood me cause my english is not very good Valuater said: $begin = TimerInit()While 1Send("e")$dif = TimerDiff($begin)if $dif >= 10000 Then MsgBox(0,"Time Difference",$dif) ExitLoopEndIfWEndIt's almost what i wanna do, but that's not exactly the same thing. The key is not held... Edited September 8, 2005 by PapyToxik
seandisanti Posted September 8, 2005 Posted September 8, 2005 Valuater said: it's the next line that states "pressed for 10 seconds as quickly as possible..."but your are correct with your code "holding down" the "e" key.8)<{POST_SNAPBACK}>actually that line is what made me think it was the initial 10 second delay he mentioned that was causing his problem.
seandisanti Posted September 8, 2005 Posted September 8, 2005 PapyToxik said: I want the key to be simply held for 10 seconds. I don't this pause before the send. Hope you understood me cause my english is not very good It's almost what i wanna do, but that's not exactly the same thing. The key is not held...<{POST_SNAPBACK}>check the code that i already posted... it holds the key for ten seconds...
Valuater Posted September 8, 2005 Posted September 8, 2005 (edited) ok... thanks to Cameronsdad and Valuater... this does both $begin = TimerInit() Send("{e down}") ToolTip("e down") While 1 Send("e") $dif = TimerDiff($begin) if $dif >= 10000 Then MsgBox(0,"Time Difference",$dif) Send("{e up}") ExitLoop EndIf WEnd 8) Edited September 8, 2005 by Valuater
jpm Posted September 8, 2005 Posted September 8, 2005 May I say again is the bug in all release of Autoit official and beta that will be corrected in 3.1.1.75 beta
seandisanti Posted September 8, 2005 Posted September 8, 2005 jpm said: May I say again is the bug in all release of Autoit official and beta that will be corrected in 3.1.1.75 beta <{POST_SNAPBACK}>glad to hear that it will be corrected, and i swear i did see that the first time you said it, i just wanted to try to provide a workaround that they could implement immediately
jefhal Posted September 10, 2005 Posted September 10, 2005 (edited) jpm said: will be corrected in 3.1.1.75 betaHi JPM, I have beta 75 now, but now the code sends one "e" without any delay. Shouldn't it send e's for 10 seconds? Boy am I confuuzed... opt("SendKeyDownDelay",10000) WinActivate("Untitled - Notepad") send("e") Edited September 11, 2005 by jefhal ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
jpm Posted September 12, 2005 Posted September 12, 2005 jefhal said: Hi JPM, I have beta 75 now, but now the code sends one "e" without any delay. Shouldn't it send e's for 10 seconds? Boy am I confuuzed... opt("SendKeyDownDelay",10000) WinActivate("Untitled - Notepad") send("e")<{POST_SNAPBACK}>in fact the e appear right away but the key is released only 10 sec afteropt("SendKeyDownDelay",10000) WinActivate("Untitled - Notepad") $start=TimerStart() send("ee") msgbox(0,"diff",timerdiff($start))You can verify it with the following code
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