It keeps giving me errors on my wend sleep line. When home key is pressed then errors out.
HotKeySet("{HOME}", "GStart")
HotKeySet("{PAUSE}", "Gpause")
HotKeySet("{ESC}", "Gexit")
While 1
Sleep(100)
WEnd ;this is where it is saying the problem is but I don't understand why...
Func Gstart()
While 1
$Pixelgray = Ox4A494A
$Getpixel = PixelGetColor(363, 197)
If $Getpixel = $Pixelgray Then
Sleep(300)
Send("g")
EndIf
WEnd
EndFunc ;==>Gstart
Func Gpause()
While 1
Sleep(100)
WEnd
EndFunc ;==>Gpause
Func Gexit()
MsgBox(0, "exit box", "Script exited")
Exit 0
EndFunc ;==>Gexit