Confused with GetRectCheckSum

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
wantedman
Newbie
Posts: 7
Joined: Tue Nov 30, 2004 1:16 pm

Confused with GetRectCheckSum

Post by wantedman » Tue Nov 30, 2004 8:08 pm

Label>waitforit
GetRectCheckSum>10,10,15,15,cs
If>cs=6.20066481623195E16,Done
Goto>waitforit
Label>Done
Message>There You Go

This is the sample from the help. although I have been using this program for quite some time.. I have never used this and I am pretty confused as to how/what it does. I run my macro's pretty much in all graphic applications. Online Games, etc.. can someone give me an overview of what this does. and maybe your own personal script for me to look at? anything would be awesome.. just need O' bit of help if all you masters out there have some time.

Really the most confusing thing to me is the If>cs=6.20066481623195E16,Done line???? what is that for?? and how di dyou get that number?

Guest

Post by Guest » Fri Dec 24, 2004 10:27 pm

To get a number using GetRectCheckSum>...do this
GetRectCHeckSum>x1,y1,x2,y2,variable
message>%variable%

this will tell you that number. Hope this helps!

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Dec 25, 2004 3:31 am

The GetRectCheckSum> function uses an algorithm to assign a number based on the color values of the pixels within the defined rectangle.

If one or more pixels change, then the value will change. The most common usage would be to monitor for a color change in an area of the screen. So you would get the value and periodically check to see if it has changed.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts