Baraoic Posted March 25, 2010 Posted March 25, 2010 As in the sleep function? or do you mean until a user does something?
Xav Posted March 25, 2010 Author 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
darkjohn20 Posted March 25, 2010 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
Xav Posted March 25, 2010 Author 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!
darkjohn20 Posted March 25, 2010 Posted March 25, 2010 Thanks .. Working well <3 =D!No problem, hehe.
MvGulik Posted March 25, 2010 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 ...
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