Click a color

11/07/2009 22:15 soul179#1
Hello i just started trying to make bots for a few days and im wondering how to make the mouse click a color. Im using AutoIt if it helps and i know the hex number im just confused on how to get it to work. Thanks.
11/08/2009 00:09 ^darkwing#2
Quote:
Originally Posted by soul179 View Post
Hello i just started trying to make bots for a few days and im wondering how to make the mouse click a color. Im using AutoIt if it helps and i know the hex number im just confused on how to get it to work. Thanks.
first of all: wrong section

secound:
use the searchpixel function = position of color
i think there is a function, which can set the cursor position (position of color)
finally use a click function.

i think u should find something about that here in the forum, just search here or google it
11/08/2009 04:30 AllesVergeben#3
Quote:
first of all: wrong section
^this ;) The right section is
[Only registered and activated users can see links. Click Here To Register...]
#Reported

Code:
PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] )
Example:
Code:
$coord = Pixelsearch (100, 100, 100, 100, 0x00000) ; Bot searchs for the pixel
If not @error then ;If it found it then
mouseclick ("left", $coord[0], $coord[1]) ;klick at the pixel
EndIf
If @error then ;If it did not find it then
msgbox (0, "Fail", "Could not find the pixel") ;popup a msgbox with title "Fail" and text "Could not find the pixel"
EndIf
Here for more informations:

[Only registered and activated users can see links. Click Here To Register...]


Sincerly