Sparrowlord Posted August 27, 2008 Share Posted August 27, 2008 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? Link to comment Share on other sites More sharing options...
Pain Posted August 27, 2008 Share Posted August 27, 2008 PixelCoordMode Link to comment Share on other sites More sharing options...
Sparrowlord Posted August 27, 2008 Author Share Posted August 27, 2008 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? Link to comment Share on other sites More sharing options...
Pain Posted August 27, 2008 Share Posted August 27, 2008 Opt("PixelCoordMode", 2) if you are going to use some mousemove you might wanna use this one too Opt("MouseCoordMode", 2) Link to comment Share on other sites More sharing options...
herewasplato Posted August 28, 2008 Share Posted August 28, 2008 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 windowIf 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now