-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyKeys_AllDescktop.ahk
195 lines (161 loc) · 4.64 KB
/
MyKeys_AllDescktop.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
#Requires AutoHotkey >=2.0
#SingleInstance Force
SendMode("Input") ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir(A_ScriptDir) ; Ensures a consistent starting directory.
DetectHiddenWindows(True)
#include MyKeys_localPathVariables.ahk
#include MyKeys_Core.ahk
:*:,mig:: ;database migration file name
{
item := FormatTime(, "yyyyMMddHHmm")
send("V" . item . "__.sql")
send("{left 4}")
}
:*:,mail:: ;office mail id
{
send(myOfficeMailID)
}
:*:,dwr:: ;Dotnet watch run
{
send("dotnet watch run")
}
:*:,dr:: ;Dotnet run
{
send("dotnet run")
}
:*:,db:: ;dotnet build
{
send("dotnet build")
}
:*:,dc:: ;dotnet clean
{
send("dotnet clean")
}
:*:,cr:: ;caddy run
{
send("caddy run")
}
<^>!c:: ;--VSCode | A--Edit AHK files | H--Edit Host file | S--Edit SSH Config File | D--DrawIO | E--Excalidraw | N--New Instance
{
pressedKey := DoInputHook("T1 L1", "a,d,h,e,n,s", "c")
switch pressedKey
{
case "c", "n": RunProgramOrActivate(vsCodeProgramFilePath, "Code.exe", pressedKey == "n")
case "h": RunProgramWithParameter(vsCodeProgramFilePath, hostsFilepath)
case "e": RunProgramWithParameter(vsCodeProgramFilePath, myExcalidrawFilePath)
case "s": RunProgramWithParameter(vsCodeProgramFilePath, mySSHConfigFilePath)
case "d": RunProgramWithParameter(vsCodeProgramFilePath, myDrawIOFilePath)
case "a":
RunProgramWithParameter(vsCodeProgramFilePath, myKeysCoreFilePath)
RunProgramWithParameter(vsCodeProgramFilePath, myAllDesktopKeysFilePath)
RunProgramWithParameter(vsCodeProgramFilePath, myCurrentDesktopKeysFilePath)
RunProgramWithParameter(vsCodeProgramFilePath, myLocalSystemVariablesFilePath)
}
}
<^>!d:: ;DBEaver
{
RunProgramOrActivate(dbeaverProgramFilePath, "dbeaver.exe")
}
<^>!g:: ;--LocalHost:5000 | (1to9)--Localhost:500x URL | w--whatsapp
{
pressedKey := DoInputHook("T1 L1", "0,1,2,3,4,5,6,7,8,9,w", "0")
endpoint := ""
switch pressedKey
{
case "w": endpoint := "https://web.whatsapp.com/"
default: endpoint := "http://localhost:500" . pressedKey . "/"
}
RunProgramWithParameter(edgeProgramFilePath, endpoint)
}
<^>!h:: ;Help Window
{
; parameter := Format('{1} /c ""lprun6" "{2}""', cmdProgramFilePath, ahkHelpWindowProgramPath)
RunProgram("./AHKHelpWindow.exe", "", "")
}
<^>!i:: ;Initalize Startup Programs
{
RunProgramOrActivate(thunderbirdProgramFilePath, "thunderbird.exe")
RunProgramOrActivate(sublimeMergeProgramFilePath, "sublime_merge.exe")
RunProgramOrActivate(dbeaverProgramFilePath, "dbeaver.exe")
RunProgramOrActivate(notionProgramFilePath, "Notion.exe")
RunProgramWithParameter(edgeProgramFilePath, TeamsStandUpChannelLink)
}
<^>!j:: ;Jmeeter
{
RunProgramOrActivate(jmeeterProgramFilePath, "javaw.exe", IsNewWindowCall())
}
<^>!k:: ;--notion | l--work log
{
pressedKey := DoInputHook("T1 L1", "k,l", "k")
switch pressedKey
{
case "l": RunProgram(NotionWorkLogTodayPage)
case "k":
if(WinActive("ahk_exe msedge.exe"))
{
Send("{F4}")
Send("^c")
sleep(50)
pathToExecute := StrReplace(A_Clipboard, "https", "notion", 1)
RunProgram(pathToExecute)
}
else
{
RunProgramOrActivate(notionProgramFilePath, "Notion.exe")
}
}
TrayTip("Done", "Opening notion")
}
<^>!l:: ;Linqpad 6
{
RunProgramOrActivate(linqPad6ProgramFilePath, "LINQPad6.exe", IsNewWindowCall())
}
<^>!m:: ;Sublime Merge
{
RunProgramOrActivate(sublimeMergeProgramFilePath, "sublime_merge.exe", IsNewWindowCall())
}
<^>!n:: ;Notepad
{
RunProgramOrActivate(notepadProgramFilePath, "Notepad.exe", IsNewWindowCall())
}
<^>!r:: ;Rebuild My AHK Keys
{
RunProgram(myAllDesktopKeysFilePath, "", "Min")
RunProgram(myCurrentDesktopKeysFilePath, "", "Min")
}
<^>!s:: ;Sublime Text
{
RunProgramOrActivate(sublimeTextProgramFilePath, "sublime_text.exe", IsNewWindowCall())
}
<^>!u:: ;WSL Ubuntu
{
RunProgramOrActivate(wslUbuntuProgramFilePath, "WindowsTerminal.exe", true)
}
#`:: ;Open With Notepad
{
RunSelected(notepadProgramFilePath)
}
#1:: ;Open With VSCode
{
RunSelected(vsCodeProgramFilePath)
}
#2:: ;Open With VS22
{
RunSelected(visualStudio22ProgramFilePath)
}
#3:: ;Open With Sublime
{
RunSelected(sublimeTextProgramFilePath)
}
#9:: ;Open With VS19
{
RunSelected(visualStudio19ProgramFilePath)
}
#7:: ;Open With VS17
{
RunSelected(visualStudio17ProgramFilePath)
}
#-:: ;Minimize Current Window
{
WinMinimize("A")
}