supadodger Posted May 12, 2007 Posted May 12, 2007 (edited) i want to click the very bottom of this pixel here is my code and it clicks the first spot it finds i want the lowest spot on the screen $loot = PixelSearch(251, 222, 800, 634, 0xF8D02F, 5) If IsArray($loot) = 1 Then MouseMove($loot[0] , $loot[1] , 0) MouseClick("left") MouseClick("left") Edited May 12, 2007 by supadodger
PsaltyDS Posted May 12, 2007 Posted May 12, 2007 You can either save the result from PixelSearch() and then do it again for just the remaining area to see if there is one lower... OR Code your own loop to PixelSearch() one line at a time working backwards up from the bottom row you are interested in... OR If you need both lowest row and right-most location, code your own search with a loop using PixelGetColor() that searches right-to-left, bottom-to-top. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Moderators SmOke_N Posted May 12, 2007 Moderators Posted May 12, 2007 http://www.autoitscript.com/forum/index.ph...st&p=266683Just click the last x and y element found. 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.
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