im new to autoit coding and i just made a bot for a game, it works fine just that i need it to run indefinitely without giving me a recursion error. If possible i hope you could help me solve my problem.
Heres my code:
HotKeySet("{F1}", "Start")
HotKeySet("{ESC}", "End")
Local $Repetition = 1
Local $AvoidError = 0
While 1
Sleep(100)
WEnd
Func End()
Exit 0
EndFunc ;==>End
Func Start()
$leftspawn = PixelSearch(21, 173, 21, 173, 0xFFFF00)
If IsArray($leftspawn) = True Then
Send("