Skip to content

Instantly share code, notes, and snippets.

@GabeStah
Created October 4, 2014 01:28
Show Gist options
  • Select an option

  • Save GabeStah/1f9a01b7a7b16035cee5 to your computer and use it in GitHub Desktop.

Select an option

Save GabeStah/1f9a01b7a7b16035cee5 to your computer and use it in GitHub Desktop.
; This example allows you to move the mouse around to see
; the title of the window currently under the cursor:
#Persistent
SetTimer, WatchCursor, 100
return
WatchCursor:
MouseGetPos, xpos, ypos, id, control
WinGetTitle, title, ahk_id %id%
WinGetClass, class, ahk_id %id%
ToolTip, ahk_id %id%`nahk_class %class%`n%title%`nControl: %control%`nCoords: %xpos% %ypos%
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment