Rydextillxixdiex Posted May 23, 2008 Share Posted May 23, 2008 After preforming a pixel search in the specified region: ---------------------------------------------------------------------- PixelSearch(180, 510, 328, 550, 0x6a0706, 10) ----------------------------------------------------------------------------------------------------------- How can i tell the script to move the mouse and click on the found pixel, if it was infact found. This is what i have come up with, but it doesn't work . ----------------------------------------------------------------------------------------------------------- While 1 $Button = PixelSearch(180, 510, 328, 550, 0x6a0706, 10) While @error = 0 MouseClick("Left", $Button[0], $Button[1], 0) WEnd ------------------------- Any ideas anyone? Thanks in Advance. ------------------------- ...will never learn all there is to know about autoit, no worries...i came to the forums :) Link to comment Share on other sites More sharing options...
narayanjr Posted May 23, 2008 Share Posted May 23, 2008 While 1 $Coords = PixelSearch(180, 510, 328, 550, 0x6a0706, 10) If isArray($Coords) then MouseClick("Left",$Coords[0], $Coords[1],1,1) EndIf WEnd 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