Garrett19212 Posted July 8, 2005 Share Posted July 8, 2005 Iv fooled around with the pixelsearch, but i cant get it to do what i want. How can i pixel search, X:26 Y:81 For the pixel 0x191510 PixelSearch( 0,0, 26, 81, 0x191510, 10 ) That "worked" but not right, it continued even though that spot wasn't that color within 10 shades. PixelSearch( 0,0, 26, 81, 0x191510, 10 ) If not @error Then Send("{M}") sleep(300) mouseclick("left", 34, 589, 1) Endif It sent M, and clicked there. Even though that color wasn't in that spot. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 8, 2005 Moderators Share Posted July 8, 2005 I posted this earlier:Specific Coord & Color$color = PixelGetColor(26, 81) If $color == 0x191510 Then ;your script here EndiforPixelSearch(26, 81, 26, 81, 0x191510) If Not @error Then ;your script here EndifHope it helps! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Garrett19212 Posted July 8, 2005 Author Share Posted July 8, 2005 Thx, works. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 8, 2005 Moderators Share Posted July 8, 2005 Great!! Glad I could help. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Recommended Posts
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!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now