Skip to content

Instantly share code, notes, and snippets.

@madewokherd
Created October 25, 2015 15:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madewokherd/51858cdbd21385d08cfa to your computer and use it in GitHub Desktop.
Save madewokherd/51858cdbd21385d08cfa to your computer and use it in GitHub Desktop.
ahk hotkey to show information about the active window
DetectHiddenWindows, On
#f::
WinGet, ID, ID, A
WinGet, ProcessName, ProcessName, ahk_id %ID%
WinGet, PID, PID, ahk_id %ID%
WinGetTitle, Title, ahk_id %ID%
WinGetClass, Class, ahk_id %ID%
MsgBox, Process Name: %ProcessName%`nProcess ID: %PID%`nHWND: %ID%`nTitle: %Title%`nClass: %Class%
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment