Xav Posted March 25, 2010 Share Posted March 25, 2010 A function can pause my script. Link to comment Share on other sites More sharing options...
Baraoic Posted March 25, 2010 Share Posted March 25, 2010 As in the sleep function? or do you mean until a user does something? Link to comment Share on other sites More sharing options...
Xav Posted March 25, 2010 Author Share Posted March 25, 2010 (edited) As in the sleep function? or do you mean until a user does something? Until a user does something , like that : Hotkeyset("{numbpad1}" , "Break") Func Break() PauseScript endfunc Edited March 25, 2010 by Xav Link to comment Share on other sites More sharing options...
darkjohn20 Posted March 25, 2010 Share Posted March 25, 2010 (edited) $Run = 0 ;Start script paused HotKeySet("s", "Start") ;Start Key HotKeySet("e", "End") ;End Key HotKeySet("q", "Quit") ;Quit Key While 1 If $Run = 1 Then ;Your script EndIf WEnd Func Start() $Run = 1 EndFunc Func End() $Run = 0 EndFunc Func Quit() Exit EndFunc By end I mean pause. Edited March 25, 2010 by darkjohn20 Link to comment Share on other sites More sharing options...
Xav Posted March 25, 2010 Author Share Posted March 25, 2010 $Run = 0 ;Start script paused HotKeySet("s", "Start") ;Start Key HotKeySet("e", "End") ;End Key HotKeySet("q", "Quit") ;Quit Key While 1 If $Run = 1 Then ;Your script EndIf WEnd Func Start() $Run = 1 EndFunc Func End() $Run = 0 EndFunc Func Quit() Exit EndFunc By end I mean pause. Thanks .. Working well <3 =D! Link to comment Share on other sites More sharing options...
darkjohn20 Posted March 25, 2010 Share Posted March 25, 2010 Thanks .. Working well <3 =D!No problem, hehe. Link to comment Share on other sites More sharing options...
MvGulik Posted March 25, 2010 Share Posted March 25, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... 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