-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAhkLauncher.ahk
43 lines (39 loc) · 985 Bytes
/
AhkLauncher.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
#Requires AutoHotkey v2.0
#SingleInstance Force
#NoTrayIcon
#Include lib\AppUtils.ahk
#Include lib\LauncherJumpList.ahk
;@Ahk2Exe-SetMainIcon res\launcher.ico
AppUtils.SetCurrentProcessExplicitAppUserModelID(AppUserModelID)
KeyHistory(0)
DetectHiddenWindows True
for arg in A_Args {
switch arg {
case "setDir":
{
AppUtils.SelectLaunchDir()
ExitApp
}
case "upJumpList":
{
LauncherJumpList.up()
ExitApp
}
case "reload":
{
try {
PostMessage(AppMsgNum, 1112, 1112, , "launchMenu.ahk - AutoHotkey")
} catch {
Run A_AhkPath " launchMenu.ahk"
}
ExitApp
}
}
}
try {
PostMessage(AppMsgNum, 1111, 1111, , "launchMenu.ahk - AutoHotkey")
} catch {
Run A_AhkPath " launchMenu.ahk show"
}
AppUtils.createAppLnk(A_ScriptDir "\res\launcher.ico")
LauncherJumpList.up(AppUserModelID)