But yeah that does look a little smaller but do you think looking for the color my way would be quicker or would the pixelsearch go faster? This was just a simple clicker I had made a bit back to click in an area that had the color which it would not be moving nor have to really look for it because the color comes up in the area that its set at. Just trying to see if there is any other cleaner ways to put it so that I can maybe learn a few different ideas to work with.
Yes I missed the bracket somehow.
I was being a bit unkind, but since the x and y values are never set then I would not expect the script to run so I thought my code would be just as effective.
If you want to know which way is faster then just try them both and add a counter and a timer to find out.
$Var = PixelSearch( Left, Top, Right, Bottom, FF3399); Tells it to find the x and y coordinates ;of ;FF3399 color, in the rectangle you created by filling in "left, top, right, bottom" with the ;appropriate coords.
If NOT @error Then ; self explanitory
MouseClick( $Var[0], $Var[1], 1) ; Tells it to click on the coordinates it retrieved, one time. ( ;Default = left click, and a speed of about 10.)
;That would find the specified color ( you can find this color by using the Autoit Window tool )
I used this last program I made to find things and click them, or something similar. I'm new to autoit but I do like helping sorry if I misunderstood the Q.
Edited by Drew
Link to comment
Share on other sites
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Recommended Posts
martin
Yes I missed the bracket somehow.
I was being a bit unkind, but since the x and y values are never set then I would not expect the script to run so I thought my code would be just as effective.
If you want to know which way is faster then just try them both and add a counter and a timer to find out.
Link to comment
Share on other sites
Drew
$Var = PixelSearch( Left, Top, Right, Bottom, FF3399); Tells it to find the x and y coordinates ;of ;FF3399 color, in the rectangle you created by filling in "left, top, right, bottom" with the ;appropriate coords.
If NOT @error Then ; self explanitory
MouseClick( $Var[0], $Var[1], 1) ; Tells it to click on the coordinates it retrieved, one time. ( ;Default = left click, and a speed of about 10.)
;That would find the specified color ( you can find this color by using the Autoit Window tool )
I used this last program I made to find things and click them, or something similar. I'm new to autoit but I do like helping sorry if I misunderstood the Q.
Edited by DrewLink to comment
Share on other sites