Last active
December 9, 2018 13:54
-
-
Save jaydeepkarena/c3a4a1ae4a1d6c89a31426a2491f53b0 to your computer and use it in GitHub Desktop.
AutoHotKey Toggle Apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Add icon - just place icon file in same forlder | |
Menu, Tray, Icon, Toggle.ico | |
ToggleWinMinimize(TheWindowTitle) | |
{ | |
SetTitleMatchMode,2 | |
DetectHiddenWindows, Off | |
If WinActive(TheWindowTitle) | |
WinMinimize, %TheWindowTitle% | |
Else if WinExist(TheWindowTitle) { | |
WinGet, winid, ID, %TheWindowTitle% | |
DllCall("SwitchToThisWindow", "UInt", winid, "UInt", 1) | |
} | |
Else if (TheWindowTitle = "Calculator") | |
Run, Calc.exe | |
Else if (TheWindowTitle = "SQLiteStudio") | |
Run, E:\SOFTWARE\SQLiteStudio\SQLiteStudio.exe | |
} | |
^NumPad1::ToggleWinMinimize("Microsoft Visual Studio") | |
^NumPad2::ToggleWinMinimize("SQLiteStudio") | |
^NumPad3::ToggleWinMinimize("Butterfly") | |
^NumPad4::ToggleWinMinimize("Visual Studio Code") | |
^NumPad5::ToggleWinMinimize("Slack") | |
^NumPad6::ToggleWinMinimize("Chrome") | |
^NumPad7::ToggleWinMinimize("Calculator") | |
^NumPad8::Run, C:\Users\Developer\Downloads\pixie.exe | |
#NumPad1::send, jaydeepkarena{enter} | |
#NumPad2::send, peedyaj7{enter} | |
#NumPad3::send, root{tab}Pankaj@123{tab}{enter} | |
;shift+space - to select current line | |
;+space::send, {home}{shift}+{end} | |
#s::send select * from { } | |
#J::send ADI{TAB}AAA{TAB}{ENTER} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment