Skip to content

Instantly share code, notes, and snippets.

@belminf
Created April 21, 2016 19:48
Show Gist options
  • Save belminf/ce3080b5a565a26e403dd84c7b339a02 to your computer and use it in GitHub Desktop.
Save belminf/ce3080b5a565a26e403dd84c7b339a02 to your computer and use it in GitHub Desktop.
AutoHotkey script to detect current window
LastTitle := ""
while true {
WinGetActiveTitle, Title
if (LastTitle != Title)
{
LastTitle := Title
FileAppend, %LastTitle%`n, %A_Desktop%\active_windows.txt
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment