Iam new at autoit and i done a script that dont work , can u help me pls?
Code:
#requireadmin
WinActivate("CABAL")
HotKeySet("{f1}", "_Exit")
HotKeySet("{f2}", "_suchen")
Func _Exit()
Exit
EndFunc
Func _suchen()
$position = PixelSearch(0, 0, 522, 446, 0x9F7D0C )
If IsArray($position) Then
MouseClick("left", $position[0], $position[1], 1, 1)
EndIf
EndFunc
While 1
sleep(1)
WEnd






