Jump to content

Get mousepos in a specific window


akroon
 Share

Go to solution Solved by jdelaney,

Recommended Posts

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

  • Solution

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...