Skip to content

Instantly share code, notes, and snippets.

@Shadow6363
Forked from pmirshad/QuakeCon.ahk
Created March 14, 2012 19:23
Show Gist options
  • Save Shadow6363/2038827 to your computer and use it in GitHub Desktop.
Save Shadow6363/2038827 to your computer and use it in GitHub Desktop.
AutoHotKey Script for Console2
; Launch console if necessary; hide/show on Ctrl+`
^`::
DetectHiddenWindows, on
IfWinExist ahk_class Console_2_Main
{
IfWinActive ahk_class Console_2_Main
{
WinHide ahk_class Console_2_Main
; need to move the focus somewhere else.
WinActivate ahk_class Shell_TrayWnd
}
else
{
WinShow ahk_class Console_2_Main
WinActivate ahk_class Console_2_Main
}
}
else
Run C:\Program Files\Console2\Console.exe
DetectHiddenWindows, off
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment