pastak Posted November 6, 2008 Posted November 6, 2008 I would like my script to idle in the background without duing anything, and when i press the hotkey i set run the func binded. Already got the hotkey set etc, and made the func but i cant get the script to idle. I made a little loop, but when i press the hotkey the script stops after running the func. I want it to keep idling after completing the func.
Bert Posted November 6, 2008 Posted November 6, 2008 HotKeySet("{F2}", "_F2a_Func") Func _F2a_Func() MsgBox(0, "", "hotkey pressed") EndFunc ;==>_F2a_Func While 1 Sleep(10);idle around WEnd The Vollatran project My blog: http://www.vollysinterestingshit.com/
pastak Posted November 6, 2008 Author Posted November 6, 2008 HotKeySet("{F2}", "_F2a_Func") Func _F2a_Func() MsgBox(0, "", "hotkey pressed") EndFunc ;==>_F2a_Func While 1 Sleep(10);idle around WEnd I must have done something wrong in the loop then thanks
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