chenxu Posted December 23, 2007 Share Posted December 23, 2007 $hWnd = WinGetHandle("Untitled - ", "") $info = GUIGetCursorInfo ($hWnd) If Not IsArray($info) Then MsgBox(0, "", "error") ConsoleWrite($info & @CRLF) why? how can i get the control id under the cursor? Link to comment Share on other sites More sharing options...
therks Posted December 23, 2007 Share Posted December 23, 2007 GUIGetCursorInfo() is for user created GUI's only. See the example here.To get the control ID under the cursor for a non user created window you will have to use some API calls that I do not recall off hand, but if you have a good look around the forum you may find them. My AutoIt Stuff | My Github 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