Sign in to follow this  
Followers 0
steenpat

Detecting Animation

2 posts in this topic

Hi.

I'm having trouble with detecting when a certain graphic is changing. For instance if a red bar is increasing or decreasing or flashing a different color.

I thought I could do this using PixelCheckSum() but I am not getting good results. What I wanted to do was print a msgbox saying "this graphic is changing" while the graphic changes. And when the graphic is stationary say "this graphic is not changing." Can anyone give me an example of how they would do this?

Share this post


Link to post
Share on other sites



Hi.

  I'm having trouble with detecting when a certain graphic is changing. For instance if a red bar is increasing or decreasing or flashing a different color.

I thought I could do this using PixelCheckSum() but I am not getting good results. What I wanted to do was print a msgbox saying "this graphic is changing" while the graphic changes. And when the graphic is stationary say "this graphic is not changing." Can anyone give me an example of how they would do this?

<{POST_SNAPBACK}>

Why not this?

$checksum = PixelChecksum(0,0, 50,50)

If $checksum <> PixelChecksum(0,0, 50, 50) Then
     MsgBox(0, "Checksum", "The Graphic has changed")
Else
     MsgBox(0, "Checksum", "The Graphic has not changed")
EndIf

You could probably also use PixelGetColor.

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