Tomohashi Posted October 21, 2007 Share Posted October 21, 2007 Hey. I've been messing with AutoIt for a while (mainly just making fun little test scripts). Recently, I've had the need to find a change in a group of pixels in a couple of codes, but all I could find was how to find a specific color. Is there a way to search for movement, or a change in pixel color? If not, what would be the most efficient way of doing this? Thanks in advance. Link to comment Share on other sites More sharing options...
narayanjr Posted October 21, 2007 Share Posted October 21, 2007 PixelCheckSum() it wont tell you what changed it will just tell you that something did change Link to comment Share on other sites More sharing options...
Tomohashi Posted October 21, 2007 Author Share Posted October 21, 2007 PixelCheckSum()it wont tell you what changed it will just tell you that something did changeYeah, I found that one as well.I need a way to check where a change occurred, and make the mouse move to that position.I can do most of that, it's only the check part that has me caught up. Link to comment Share on other sites More sharing options...
qazwsx Posted October 22, 2007 Share Posted October 22, 2007 well you could record all of the pixel colors in an area to an array and then check them in a loop to see which one changed. A better way would be to keep them in an array and then run a checksum. If something changes in the checksum use the array to see what changed. These methods will not work accurately for something rapidly changing. Link to comment Share on other sites More sharing options...
zfisherdrums Posted October 22, 2007 Share Posted October 22, 2007 Hello Tomohashi, Could you elaborate on a couple things: 1) Is this region a control like a button, listview, etc? 2) Is this for a game, an application, or an internet page? I only ask because we might be able to provide more robust methods to monitor these changes. ...or you may educate me in some methods I never thought of before. Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... 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