Jump to content
Sign in to follow this  
windowshopr

turning coordinates to a variable?

Recommended Posts

windowshopr

Is it possible to turn a coordinate set to a variable? For example:

$checksum1 = PixelGetChecksum (2, 5, 7, 9)

$Var1 = ??coordinates found at the changed checksum

Sleep (1000)

If $checksum1 <> PixelGetChecksum (2, 5, 7, 9) Then

??Get coordinates of the changed checksum??

MouseClick ("left" $Var1)

If this is at all possible or someone knows of something that could work please let me know. Thanks

Share this post


Link to post
Share on other sites
AdmiralAlkex

To begin with there is no PixelGetChecksum() as far as I am aware, but I will assume that you meant PixelChecksum() which will mean that the answer is no.

PixelChecksum() only returns a checksum and can't be used for much more than checking IF the area have changed.

If you need exact coordinates then you would need to loop PixelGetColor() to get all colors on the screen and then compare that with the next loop of PixelGetColor(). HERE is an example which may help you.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.