~L.a.p.i.g~ Posted April 14, 2006 Posted April 14, 2006 (edited) I am trying to make a typing remote and just to test it i did this and it types it over and over again. How can i stop it? Heres the Code ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("n", "Lapigiscool") HotKeySet("{ESC}", "Terminate") ;Shift-Alt-d ;;;; Body of program would go here;;;; While 1 Sleep(100) WEnd ;;;;;;;; ; Func Lapigiscool () Send ( "L.a.p.i.g {TAB} is {TAB} Cool" ) EndFunc ;==>Lapigiscool ; Func Terminate() Exit 0 EndFunc ;==>Terminate Edited April 14, 2006 by ~L.a.p.i.g~
greenmachine Posted April 14, 2006 Posted April 14, 2006 With that exact code, it will only repeat itself if you press n more than once.
Evil_Has_Survived Posted April 14, 2006 Posted April 14, 2006 I am trying to make a typing remote and just to test it i did this and it types it over and over again. How can i stop it? Heres the Code ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("n", "Lapigiscool") HotKeySet("{ESC}", "Terminate") ;Shift-Alt-d ;;;; Body of program would go here;;;; While 1 Sleep(100) WEnd ;;;;;;;; ; Func Lapigiscool () Send ( "L.a.p.i.g {TAB} is {TAB} Cool" ) EndFunc;==>Lapigiscool ; Func Terminate() Exit 0 EndFunc;==>Terminate try this keys Thanks in advance
Thatsgreat2345 Posted April 14, 2006 Posted April 14, 2006 (edited) if you want it to repeat then put a while 1 and wend in the function so it will keep doing it like this and escape quits it HotKeySet("n", "Lapigiscool") HotKeySet("{ESC}", "Terminate") While 1 Sleep(100) WEnd Func Lapigiscool() while 1 Send("L.a.p.i.g {TAB} is {TAB} Cool") wend EndFunc Func Terminate() Exit 0 EndFunc Edited April 14, 2006 by thatsgreat2345
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