hi...i got a little problem...don´t know how i can fix it
i got a aimbot on a window and one on another window all in one browser...and when it finds a color, it should wait until the color is away or changes...here my test:
HotKeySet("y", "MyExit")
Sleep(10000)
Func schatz()
$Coord0 = PixelSearch(690,555,766,620, 0xFFFF00)
if Not @error Then
Sleep(100)
Mouseclick("left", $Coord0[0]+3, $Coord0[1]+5,1)
Sleep(500)
EndIf
EndFunc
Func glitz()
$coord1 = PixelSearch(200,100,770,500, 0xFFD050)
if Not @error Then
Sleep(100)
Mouseclick("left", $Coord1[0] , $Coord1[1],1)
Sleep(1000)
EndFunc
;Func wait()
; While 1
; if not PixelGetColor($Coord0[0] , $Coord0[1]) = 0xFFFF00 Then ExitLoop
; Sleep(100)
; Wend
;EndFunc
Func MyExit()
Exit
EndFunc
While 1
schatz()
glitz()
;wait()
WEnd
would be nice if the function glitz just starts, when func schatz found something, is it makeable?
thx in advance