AutID Posted October 30, 2013 Share Posted October 30, 2013 Hello,Doesn anyone knows how to get the coords for controlclick. Something similar to MouseGetPos() but for controlclick.I know it is possible because au3info tool does it but i dont know how...Any ideas?Cheers https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
FireFox Posted October 30, 2013 Share Posted October 30, 2013 Hi,ControlGetPos? Can you be more specific?Br, FireFox. Link to comment Share on other sites More sharing options...
AutID Posted October 30, 2013 Author Share Posted October 30, 2013 Bonjour, I want to get the mouse coords but for controlclick as autoit tool does https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
FireFox Posted October 30, 2013 Share Posted October 30, 2013 #include <WinAPI.au3> Local $tPoint = 0, $hWnd = 0, $tRect = 0 While 1 $tPoint = _WinAPI_GetMousePos() $hWnd = _WinAPI_WindowFromPoint($tPoint) $tRect = _WinAPI_GetWindowRect($hWnd) ToolTip("hwnd: " & $hWnd & @CrLf & _ "x: " & DllStructGetData($tPoint, 1) - DllStructGetData($tRect, 1) & ", " & _ "y: " & DllStructGetData($tPoint, 2) - DllStructGetData($tRect, 2)) Sleep(10) WEnd Link to comment Share on other sites More sharing options...
AutID Posted October 31, 2013 Author Share Posted October 31, 2013 hmm... it wasnt so hard after all merci https://iblockify.wordpress.com/ 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