Adergon Posted December 25, 2011 Share Posted December 25, 2011 (edited) Hey all, a few days ago i asked help if the pixelsearch could find similar colors, and it worked. Thanks! But the more shade variation i put, the function won't find the colors within the area chosen. It starts to click places that is outside the positions asked for. Please can someone explain what's going on? EDIT: I'm at my grandmothers house celebrating christmas, so i won't be able to post my code right now:P EDIT2: For example, if i try to make it find the color of the recyle bin, within a specific area. (area of recycle bin). I put shade variation on, it wont pick the color within that area. Awhh hard to explain Edited December 25, 2011 by Adergon Link to comment Share on other sites More sharing options...
ElFuego Posted December 25, 2011 Share Posted December 25, 2011 Maybe pixelsearch just isn't the right thing to use here ? What exactly do you like to do ? If you just like to open the recycle bin you can use this command: ShellExecute("::{645FF040-5081-101B-9F08-00AA002F954E}") That's the unique class id of the recycle bin btw. My scripts: Logfile Snippet Link to comment Share on other sites More sharing options...
Adergon Posted December 25, 2011 Author Share Posted December 25, 2011 Maybe pixelsearch just isn't the right thing to use here ? What exactly do you like to do ? If you just like to open the recycle bin you can use this command: ShellExecute("::{645FF040-5081-101B-9F08-00AA002F954E}") That's the unique class id of the recycle bin btw. Yes, that command probably works. but that was just an example with the recycle bin. My problem: The more shade variation i put, the function starts finding pixels outside the box of the certain area i want to find the pixel. Link to comment Share on other sites More sharing options...
AutoBert Posted December 25, 2011 Share Posted December 25, 2011 As you have seen Pixelsearch is not the best Tool for your Problem, so what did you want to solve? Maybe there is a better way to solve it.My problem: The more shade variation i put, the function starts finding pixels outside the box of the certain area i want to find the pixel.That isnt possible, because Pixelsearch search only in teh Area you have given, not outside of this area. Link to comment Share on other sites More sharing options...
sliwek Posted December 27, 2011 Share Posted December 27, 2011 u can try with PixelCheckSum. if u know walue PixelCheckSum of ur button then u can first look for pixelsearch then compare pixelchecksum at founded positions with ur checksum. Link to comment Share on other sites More sharing options...
JohnOne Posted December 27, 2011 Share Posted December 27, 2011 If pixelsearch is returning results outside of what you think is its search area, I suspect you are doing something very wrong.So unfortunately you are going to have to show code. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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