akroon Posted December 23, 2013 Share Posted December 23, 2013 Hello, i have this problem: i need find the mouse coordinate relative of a specific window. The function MouseGetPos return the coordinate of mouse relative of the full screen and i not need that. Are there any function that can give me the coordinate of mouse relatives at one specifict window? Thanx. Link to comment Share on other sites More sharing options...
Solution jdelaney Posted December 23, 2013 Solution Share Posted December 23, 2013 (edited) Different coord modes are present, check the helpfile AutoItSetOption("MouseCoordMode", 2) MsgBox(1,1,"activate your window, now", 5) $a = MouseGetPos() _ArrayDisplay($a) The message box will close automatically in 5 seconds, so don't activate it, just go straight to your app, activate it, move the mouse where you want to get pos, and wait for the array...oh, don't forget #include <array.au3> Edited December 23, 2013 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Tekk Posted December 23, 2013 Share Posted December 23, 2013 #include <WinAPI.au3> _WinAPI_GetMousePos([$fToClient = False [, $hWnd = 0]]) May be more useful. Removes the need for the window in question to be active. Link to comment Share on other sites More sharing options...
akroon Posted December 23, 2013 Author Share Posted December 23, 2013 (edited) Thank you so much AutoItSetOption("MouseCoordMode", 2) just this string solve my problems Edited December 23, 2013 by akroon 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