Jump to content

Recommended Posts

Posted (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 by XKira
Posted (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 by XKira
Posted (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)

Posted Image

Edited by XKira

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
×
×
  • Create New...