XKira Posted June 10, 2010 Share Posted June 10, 2010 (edited) "2 = relative coords to the client area of the defined window" What is the defined window? will be be the active window? I understand it will with this option only search for pixels in a client area, but I need it in a specific client area.. so im not sure if it defaults to the window that is active, thats what I need to know. Edited June 10, 2010 by XKira Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 10, 2010 Share Posted June 10, 2010 It meant the active window, yes. Link to comment Share on other sites More sharing options...
XKira Posted June 10, 2010 Author Share Posted June 10, 2010 (edited) It meant the active window, yes. Im still having trouble understanding... AutoItSetOption("PixelCoordMode", 2) Sleep(5000) $var = MouseGetPos() MsgBox(0, " ", $var[0] & " " & $var[1]) I use this inside a window (inside the client) but it still returns the literal pixel coord. Why is this? Edited June 10, 2010 by XKira Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 10, 2010 Share Posted June 10, 2010 That's because there's no such thing as "MouseCoordColor". You want "PixelCoordMode". Link to comment Share on other sites More sharing options...
XKira Posted June 10, 2010 Author Share Posted June 10, 2010 (edited) That's because there's no such thing as "MouseCoordColor". You want "PixelCoordMode". o-o;;; Oh wow... Time to get some sleep XD Thanks alot. Its still giving me literal position though ... AutoItSetOption("PixelCoordMode", 2) Sleep(5000) $var = MouseGetPos() MsgBox(0, " ", $var[0] & " " & $var[1]) i'll use megaten for an example. as you can see, the mouse is on the First Pixel in the client area. but it still returns 451, 133 (literal pixel area) Edited June 10, 2010 by XKira 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