PowerShell - QuakeStyle (now supports posh~git as well)
F12::
DetectHiddenWindows, on
If WinExist("posh~git") OR WinExist("Windows PowerShell")
{
If WinActive("posh~git") OR WinActive("Windows PowerShell")
{
WinHide
if(temptitle="")
WinActivate ahk_class Shell_TrayWnd
else
WinActivate %temptitle%
}
else
{
WinGetActiveTitle, temptitle
WinShow
WinActivate
}
}
else{
WinGetActiveTitle, temptitle
Run, PowerShell -ExecutionPolicy unrestricted -WindowStyle Maximized -NoLogo
}
DetectHiddenWindows, off
return