Jump to content

Detecting Animation


Recommended Posts

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?

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...