Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;MouseGetPos, xpos, ypos
- ;Msgbox, The cursor is at X%xpos% Y%ypos%.
- ; This example allows you to move the mouse around to see
- ; the title of the window currently under the cursor:
- #Persistent
- DetectHiddenWindows, on
- SetTimer, WatchCursor, 100
- return
- WatchCursor:
- MouseGetPos, xpos, ypos, id, control
- WinGetTitle, title, ahk_id %id%
- WinGetClass, class, ahk_id %id%
- ToolTip, X%xpos% Y%ypos% ahk_id %id%`nahk_class %class%`n%title%`nControl: %control%
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement