Need script

06/30/2008 00:34 kikichan#1
I was wondering if anyone can make a script that when I press a key it will start and press another key and it will stop. Like "Home" will start. "End" and it will end.

This is the script I was trying to do.

while 1

send ("1")
sleep(100)
send ("2")
sleep(100)
send ("3")
sleep(100)

Wend

How ya make a stop and start hot key XD
06/30/2008 00:51 Correia3#2
Global $Paused
HotKeySet("{HOME}", "TogglePause")
HotKeySet("{END}", "Terminate")

Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('"Paused"',0,0)
WEnd
ToolTip("")
EndFunc

Func Terminate()
Exit 0
EndFunc
06/30/2008 07:14 kikichan#3
Well thanks XD I found out how cuz one of my friend tough me x.x but Ill thanks you.