Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ;MouseGetPos, xpos, ypos
  2. ;Msgbox, The cursor is at X%xpos% Y%ypos%.
  3.  
  4. ; This example allows you to move the mouse around to see
  5. ; the title of the window currently under the cursor:
  6. #Persistent
  7. DetectHiddenWindows, on
  8. SetTimer, WatchCursor, 100
  9. return
  10.  
  11. WatchCursor:
  12. MouseGetPos, xpos, ypos, id, control
  13. WinGetTitle, title, ahk_id %id%
  14. WinGetClass, class, ahk_id %id%
  15. ToolTip, X%xpos% Y%ypos% ahk_id %id%`nahk_class %class%`n%title%`nControl: %control%
  16. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement