mmlm Posted November 3, 2006 Share Posted November 3, 2006 for now my scrip work verry good but I want to know if I can add a func on it. for now I have 2 choice the end for start the script and the home for quit the script... is it possible to set an other key for just take a break lol only like set someting for he wait the time I need to do someting I want touch the break on keybord for stop the script and if I touch again the break that restart where the script stop is that possible ? Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{home}", "Terminate") HotKeySet("{break}", "notPaused") Link to comment Share on other sites More sharing options...
Rad Posted November 3, 2006 Share Posted November 3, 2006 (edited) Not really sure what you mean, you could just have your break function go: Func Pause() Do Sleep(10) Until _IsPressed(*break*) = 1 Endfunc If you do something like that, make sure that it doesnt pause until they have released break (or else it would be very difficult to make this work (as once its run 'break' would already be pressed, since it was hotkeyed) edit, unless you meant pause the script... Im not sure how you do that though =/ Edited November 3, 2006 by Rad Link to comment Share on other sites More sharing options...
mmlm Posted November 3, 2006 Author Share Posted November 3, 2006 Ok tanks I try that righ now Link to comment Share on other sites More sharing options...
mmlm Posted November 3, 2006 Author Share Posted November 3, 2006 I have that right now... the pause work I click enter and work but stay paused... I need to unpause now Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{home}", "Terminate") HotKeySet("{enter}", "pause") Func Terminate() Exit 0 EndFunc Func Pause() $Pause = (Sleep Until("{enter}")) Endfunc 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