imacrazyballoono Posted May 28, 2006 Posted May 28, 2006 How do I make it so that it will run a script until I press something like alt+s?
Daniel W. Posted May 28, 2006 Posted May 28, 2006 HotKeySet("{ALT}s", "_exit") ;;;;;; Your Script Func _exit() Exit EndFunc That's it --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]
imacrazyballoono Posted May 28, 2006 Author Posted May 28, 2006 (edited) Wow, thanks that seemed too easy. So just to make sure, if i follow this, it will do the script until i press it? so it will loop it? Edited May 28, 2006 by imacrazyballoono
Daniel W. Posted May 28, 2006 Posted May 28, 2006 Anything is easy for anyone everytime. --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]
imacrazyballoono Posted May 28, 2006 Author Posted May 28, 2006 I tried that, it didnt loop. Ill post it. HotKeySet("{ALT}s", "_exit") $rnd1 = Random ( 0, 700) $rnd2 = Random ( 0, 700) MouseMove($rnd1, $rnd2, 1) sleep(300) Func _exit() Exit EndFunc
Emperor Posted May 28, 2006 Posted May 28, 2006 I tried that, it didnt loop. Ill post it. HotKeySet("{ALT}s", "_exit") $rnd1 = Random ( 0, 700) $rnd2 = Random ( 0, 700) MouseMove($rnd1, $rnd2, 1) sleep(300) Func _exit() Exit EndFuncYou forgot to put your script inside a loop. HotKeySet("{ALT}s", "_exit") While 1 $rnd1 = Random ( 0, 700) $rnd2 = Random ( 0, 700) MouseMove($rnd1, $rnd2, 1) sleep(300) Wend Func _exit() Exit EndFunc
imacrazyballoono Posted May 28, 2006 Author Posted May 28, 2006 Ok, that didnt work, i had to sit for about 5 minutes pressing tab and using hotkeys. = ) anyway. alt + s didnt stop it.
Emperor Posted May 28, 2006 Posted May 28, 2006 HotKeySet("!s", "_exit") While 1 $rnd1 = Random ( 0, 700) $rnd2 = Random ( 0, 700) MouseMove($rnd1, $rnd2, 1) sleep(300) Wend Func _exit() Exit EndFunc Try that, just had to change the HotKeySet() function to take the proper format.
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