GoATrancE Posted January 18, 2007 Share Posted January 18, 2007 Hi everyone when i compile this script : HotKeySet ("{INS}", "func1") Func func1() Send ("cool") sleep (100) send ("123") EndFunc and Start compiled .exe file and i see for 1 sec the script and its automaticly turns off :S What's that ? Link to comment Share on other sites More sharing options...
someone Posted January 18, 2007 Share Posted January 18, 2007 (edited) No bug... you need to include a While/Wend statement... HotKeySet ("{INS}", "func1") While 1 Sleep(1000) WEnd Func func1() Send ("cool") sleep (100) send ("123") EndFunc Basically the While 1 statement will keep the script alive until you exit. Edited January 18, 2007 by someone While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd Link to comment Share on other sites More sharing options...
GoATrancE Posted January 18, 2007 Author Share Posted January 18, 2007 No bug... you need to include a While/Wend statement... HotKeySet ("{INS}", "func1") While 1 Sleep(1000) WEnd Func func1() Send ("cool") sleep (100) send ("123") EndFunc Basically the While 1 statement will keep the script alive until you exit. Okay Thanks YOu.. Its Work !! 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