lawpapa Posted November 14, 2005 Share Posted November 14, 2005 I would like to find a solution for pauseing my script by pressing a certain key on the keyboard Does anyone know something about it ? Pls dont recommend me the pause/break key. or tell me why it does not work by my comp ^^ Ty in advance L.- Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 14, 2005 Moderators Share Posted November 14, 2005 I would like to find a solution for pauseing my script by pressing a certain key on the keyboardDoes anyone know something about it ?Pls dont recommend me the pause/break key. or tell me why it does not work by my comp ^^Ty in advanceL.-Ok, how about we tell you to read the "Help" file under HotKeySet, and there is a perfect "Pause" example right there for the copying. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
BigDod Posted November 14, 2005 Share Posted November 14, 2005 (edited) I would like to find a solution for pauseing my script by pressing a certain key on the keyboardDoes anyone know something about it ?Pls dont recommend me the pause/break key. or tell me why it does not work by my comp ^^Ty in advanceL.-Look at the example for HotKeySet in the help files.Edit - Great minds think alike!!! Edited November 14, 2005 by BigDod 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 Link to comment Share on other sites More sharing options...
lawpapa Posted November 14, 2005 Author Share Posted November 14, 2005 many thx guys sometimes i cant find things in help file tx again Link to comment Share on other sites More sharing options...
ivan Posted November 14, 2005 Share Posted November 14, 2005 I often use a twin combination of hotkey sets to do the pausing and resuming if I manually require to pause a script. If you think about it, pausing is only half of what you need, you'll also need to resume execution at some point. You could always define a hotkey set which does the pausing. Chose a key combination that doesn't conflict with other applications that you might be running, say esc key (this will conflict with many other progs) i.e somewhere at the beginning of the script HotKeySet ( "{esc}" , "pauser" ) HotKeySet ( "{f1}" , "resumer" ) Global $var somewhere in the execution of your script Func pauser() $var=0 while $var=0 sleep (250) wend endfunc I haven't tested this but it might work. and somewhere else something like Func resumer() $var=1 endfunc Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 Link to comment Share on other sites More sharing options...
BigDod Posted November 14, 2005 Share Posted November 14, 2005 I often use a twin combination of hotkey sets to do the pausing and resuming if I manually require to pause a script. If you think about it, pausing is only half of what you need, you'll also need to resume execution at some point.You could always define a hotkey set which does the pausing. Chose a key combination that doesn't conflict with other applications that you might be running, say esc key (this will conflict with many other progs) i.esomewhere at the beginning of the scriptHotKeySet ( "{esc}" , "pauser" )HotKeySet ( "{f1}" , "resumer" )Global $varsomewhere in the execution of your scriptFunc pauser()$var=0while $var=0sleep (250)wendendfuncI haven't tested this but it might work.and somewhere else something likeFunc resumer()$var=1endfuncThe example in the help file pauses and resumes. 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 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