Jump to content
Sign in to follow this  
akroon

Get mousepos in a specific window

Recommended Posts

akroon

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.

Share this post


Link to post
Share on other sites
jdelaney

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 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.

Share this post


Link to post
Share on other sites
akroon

Thank you so much  :lmao:  :lmao:

AutoItSetOption("MouseCoordMode", 2)

just this string solve my problems  :thumbsup:

Edited by akroon

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×