Jump to content
Sign in to follow this  

Screen woes

Recommended Posts


Is there a function to assign a certain pixel in a window as a reference point for all other coords ?

Ive found the checksum of a 10x10 pixel square, but dont really know what to do with it.

#include <Array.au3>

$coord0 = PixelSearch(0, 0, 40, 145, 0x364C63)
If Not @error Then
    ;MouseMove($coord[0], $coord[1], 1)
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
    $checksum = PixelChecksum($coord0[0], $coord0[1], $coord0[0] + 10, $coord0[1] + 10)
    MsgBox(0, "", "$coord0 $checksum = " & $checksum)

The window is scrollable you see so I cant use absolute screen coords.

I'm hoping its nothing to do with pixelcoordmode, as I dont quite understand that.

Is there a fuction for this ?

My goal is to move mouse to a coord on screen reletive to $coord0

Appreciate any hints

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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