hallo,
ich brauche hilfe
undzwar ich versuche einen MouseMove befehl mit einem PixelSearch befehl zu kombinieren.
d.h. ich will mit dem PixelSearch einen Pixel ausfindig machen und mit dem Mousmove befehl soll der zeiger dorthin wandern und dort einen doppelklick ausführen.
nur ich weiß nich wie ich das hinbekomme...
ich hoffe ihr wisst wie es geht und könnt mir helfen
danke im vorraus
lg
ich
MouseMove
-
- [ offen ]
-
Julsco -
18. Juni 2009 um 11:59 -
Geschlossen -
Erledigt
-
-
1. Hilfe benutzen
PixelSearch
Spoiler anzeigen
PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] )
Parameters
left left coordinate of rectangle.
top top coordinate of rectangle.
right right coordinate of rectangle.
bottom bottom coordinate of rectangle.
colour Colour value of pixel to find (in decimal or hex).
shade-variation [optional] A number between 0 and 255 to indicate the allowed number of shades of variation of the red, green, and blue components of the colour. Default is 0 (exact match).
step [optional] Instead of searching each pixel use a value larger than 1 to skip pixels (for speed). E.g. A value of 2 will only check every other pixel. Default is 1.
hwnd [optional] Window handle to be used.MouseMove
Spoiler anzeigen
MouseMove ( x, y [, speed] )Parameters
x The screen x coordinate to move the mouse to.
y The screen y coordinate to move the mouse to.
speed [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.MouseClick
Spoiler anzeigen
MouseClick ( "button" [, x, y [, clicks [, speed ]]] )Parameters
button The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".
x, y [optional] The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used (default).
clicks [optional] The number of times to click the mouse. Default is 1.
speed [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.2. Suchfunktion benutzen
3. Bots werden nicht unterstützt
schönen Tag...
-
die Hilfe hilft:
Spoiler anzeigen
[autoit]
[/autoit]
; Finde einen roten Pixel im Bereich 0,0-20,300.
$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 )
If Not @error Then
MsgBox(0, "X und Y lauten:", $coord[0] & "," & $coord[1])
EndIfstatt MsgBox dann Deinen MouseMove oder besser : MouseClick ( "button" [, x, y [, clicks [, speed ]]] )