So, i just randomly tought, "Hey, maybe i can do a pixel search aimbot for a game" And i actually did some research. The problem is that whenever i turn the script on and the color is in the range, it snaps onto the ground. Can someone tell me what im doing wrong ?
Here is the script:
Code:
HotKeySet("{HOME}","start")
HotKeySet("{end}","stop")
while 1
sleep(100)
WEnd
func stop()
Exit
EndFunc
func start()
while 1
$zmienna = PixelSearch(641, 357,721, 413,0x0BFF43)
if not @error Then
mousemove($zmienna[0],$zmienna[1],0)
EndIf
WEnd
EndFunc