Sign in to follow this  
Followers 0
Tomohashi

Look for change

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



PixelCheckSum()

it wont tell you what changed it will just tell you that something did change

Share this post


Link to post
Share on other sites

PixelCheckSum()

it wont tell you what changed it will just tell you that something did change

Yeah, 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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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. <_<

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0