Ich würde gerne wissen wie man mit AutoIT schafft dass es eine Farbe erkennt , zb Blau^^ und da rauf geht und Doppelklick macht...
Hoffe jemand kann mir nen Code mit Erklärung senden =D!
Liebe Grüsse Aichi
Ich würde gerne wissen wie man mit AutoIT schafft dass es eine Farbe erkennt , zb Blau^^ und da rauf geht und Doppelklick macht...
Hoffe jemand kann mir nen Code mit Erklärung senden =D!
Liebe Grüsse Aichi
finde keine hilfe zu Pixelgetcolor...
Du lässt halt in eine While Schleife nach einer Farbe suchen mittels $farbe = PixelSearch() wird deine Farbe gefunden lässt du hier mit auf den Pixel Klicken : MouseClick ( "left",$farbe[0],$farbe[1])
finde keine hilfe zu Pixelgetcolor...
du musst in der Hilfedatei einfach nach pixelgetcolor suchen und du bekommst diesen Eintrag
PixelGetColor
--------------------------------------------------------------------------------
Returns a pixel color according to x,y pixel coordinates.
[autoit]PixelGetColor ( x , y [, hwnd] )
[/autoit]Parameters:
x x coordinate of pixel.
y y coordinate of pixel.
hwnd [optional] Window handle to be used.
Return Value:
Success: Returns decimal value of pixel's color.
Failure: Returns -1 if invalid coordinates.
Remarks:
Earlier versions of AutoIt (prior to v3.0.102) used the BGR format for defining color - newer versions use RGB by default but this can be changed using the ColorMode option.
Related:
ColorMode (Option), PixelSearch, PixelCoordMode (Option), MouseGetPos
Example:
$var = PixelGetColor( 10 , 100 )
MsgBox(0,"The decmial color is", $var)
MsgBox(0,"The hex color is", Hex($var, 6))