Jump to content
Sign in to follow this  
Sparrowlord

Pixel Checksums

Recommended Posts

Sparrowlord

I'm trying to figure out how to do a checksum to coords inside a specific window, so like it wouldn't matter where the window is at on the screen but the checksum will return the same.. My question is, would there be any possible way to detect the pixel location inside of the current window?

Share this post


Link to post
Share on other sites
Sparrowlord

PixelCoordMode

Yes, but when I look help file I see

Opt("PixelCoordMode", 1)       ;1=absolute, 0=relative, 2=client

Which ones of those would be referring to only screen that mouse in it?

Share this post


Link to post
Share on other sites
Pain

Opt("PixelCoordMode", 2)

if you are going to use some mousemove you might wanna use this one too

Opt("MouseCoordMode", 2)

Share this post


Link to post
Share on other sites
herewasplato

Yes, but when I look help file I see

Opt("PixelCoordMode", 1)      ;1=absolute, 0=relative, 2=client
...
I know that this post is a bit late...

It depends on where you are looking in the help file.

Sets the way coords are used in the pixel functions, either absolute coords or coords relative to the window defined by hwnd (default active window):

0 = relative coords to the defined window

1 = absolute screen coordinates (default)

2 = relative coords to the client area of the defined window

If you need to search for a button to click that is on the menu bar (command bar) then you might want to use 0. It includes the entire window.

[size="1"][font="Arial"].[u].[/u][/font][/size]

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.