[
[autoit]#region ---Au3Recorder generated code Start ---
Opt("MouseCoordMode",0)
Opt("PixelCoordMode",0)
Global $pixelfarbe = 0xFFFFFF, $farbe = 0x202829
WinActivate("Programm XY")
$coord = PixelSearch(0,0,1920,1200,0xFF8A12)
If Not @error Then
While 1
$pixelfarbe = PixelGetColor( $coord[0]+172, $coord[1]-63)
bewegung()
sleep(1000)
WEnd
ElseIf
Func bewegung()
If $pixelfarbe <> $farbe Then
WinActivate("Programm XY")
MouseMove($coord[0]+101,$coord[1])
MouseDown("left")
MouseMove($coord[0]-191,$coord[1])
MouseUp("left")
EndIf
EndFunc
Hallo, bin neu mit AutoIT unterwegs und bin echt am verzweifeln...
Ist mein erstes Programm. Es gibt eine Fehlermeldung aus mit der ich nichts anfangen kann.
wo ist kein fehler?