funkt soweit,nur hab ich nochn prob das die fraben nie ganz gleich sind also mal hellgrün mal dunkel grün ,wo muss ich den die range an geben?
PixelGetColor(956,655),?)
edit:
so hab ma bischen gesucht und arbeit mit PixelSearch geht au ganz gut
Code:
HotKeySet(".","Stopp")
WinActivate("x")
WinWaitActive("xx")
While 1
$coord = PixelSearch(918,654,1080,768,0xFF0000,50)
If Not @error Then
MouseClick("right", 956,655);it presses F11
EndIf
$coord = PixelSearch(918,654,1080,768,0x89FF00,50)
If Not @error Then
MouseClick("left", 956,655);
EndIf
$coord = PixelSearch(918,654,1080,768,0xFF5A00,50)
If Not @error Then
MouseClick("left", 956,655);
EndIf
Sleep(50)
Wend
Func Stopp()
Exit
EndFunc
läuft soweit ganz gut nun würd ich gern es noch im hintergrund laufen lassen
ControlSend brauch man dafür oder?