F1:: Run C:\Users\Jeffrey\SkyDrive\Documents\AHK\IUFM.ahk return F2:: ActivateWindow("cmd.exe") F3:: ActivateWindow("thunderbird.exe") ::df::definition ::prb::problem ::pf::proof ; Windows commands #e::Run explorer #i::Run C:\Program Files\Internet Explorer\iexplore.exe #z::Run www.autohotkey.com ; Control-Shift commands ^+i::Run C:\Users\Jeffrey\AppData\Roaming\.emacs.d\init.el ^+l::Run C:\Users\Jeffrey\SkyDrive\Documents\AHK\Shortcuts\loadkey.bat ^+p::Run C:\Users\Jeffrey\SkyDrive\Documents\AHK\Shortcuts\print.bat ;^+p::Run C:\Users\Jeffrey\SkyDrive\Documents\AHK\Shortcuts\startup_ps.bat F12:: ControlGet, HWND, Hwnd,, SysListView321, ahk_class Progman If HWND = ControlGet, HWND, Hwnd,, SysListView321, ahk_class WorkerW If DllCall("IsWindowVisible", UInt, HWND) WinHide, ahk_id %HWND% Else WinShow, ahk_id %HWND% Return ^+r:: WinGetTitle, Title, A MsgBox, The active window is "%Title%". Return ActivateWindow(x) { IfWinActive ahk_exe %x% { WinMinimize ahk_exe %x% } else { WinActivate ahk_exe %x% } }