How can i find client position? That question looking easy but i can't find solution.. WinGetPos giving window position and i can't add + pixel for find client position because have menu and if im use another Windows skin that client position will be not true. ControlGetPos giving window relative coordinate and that mean X=0 Y=0 I need WinGetClientPos I'm tried AutoItSetOptions too but still can't find Window Client pos.. I need find client position for my Image Editor.
I'm not sure if this will help but look into Opt("MouseCoordMode", 2).
Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = absolute screen coordinates (default) 2 = relative coords to the client area of the active window
Agreement is not necessary - thinking for one's self is!
I can't help you with the mouse movement. The fuction moves the mouse exactly twice, at speed = 0 (instantaneous), and puts the both the mouse mode and mouse pos where they were before it started. This all happens too fast to see on my computer.
I'm changed code and now find client coordinate and size in 0ms ( _WinGetClientPos find in 1 or 2 ms ) and not need move mouse.
Just in startup use that "Global $Client = _WinGetClientPos(1)" ( I mean after created GUI ) and later use "GetClientPos("Title")"
I think that method can find coordinates 100% true, if Windows Skin not changed but i'm not sure.
Use the _WinAPI_ClientToScreen($hWnd, ByRef $tPoint)
and _WinAPI_ScreenToClient($hWnd, ByRef $tPoint) functions to get the position of the client area.
Have a look at the help file to use the functions.
Easy and no hacks required via positioning of the mouse...