-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtils.ahk
70 lines (51 loc) · 1.47 KB
/
Utils.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
Script_Path = "C:\Shortcut Windows"
Monitor_1_ID = "MSI3CA8"
Monitor_2_ID = "AOC2702"
Monitor_3_ID = "SAM713F"
Monitor_4_ID = "GWD1580"
; ctrl + alt + 1 to set primary monitor
^!1::
Run MultiMonitorTool /SetPrimary %Monitor_1_ID%
Return
; ctrl + alt + 2 to set primary monitor
^!2::
Run MultiMonitorTool /SetPrimary %Monitor_2_ID%
Return
; ctrl + alt + 3 to set primary monitor
^!3::
Run MultiMonitorTool /SetPrimary %Monitor_3_ID%
Return
; ctrl + alt + 4 to set primary monitor
^!4::
Run MultiMonitorTool /SetPrimary %Monitor_4_ID%
Return
; ctrl + alt + 5 to switch to TV audio
^!5::
Run nircmd setdefaultsounddevice Q80A 1
Return
; ctrl + alt + 6 to switch to Monitor audio
^!6::
Run nircmd setdefaultsounddevice Casse 1
Return
; ctrl + alt + 7 to enable all monitors
^!7::
Run MultiMonitorTool /enable %Monitor_1_ID% %Monitor_2_ID% %Monitor_3_ID% %Monitor_4_ID%
Run MultiMonitorTool /LoadConfig %Script_Path%\allEnabled.cfg
Return
; ctrl + alt + 8 for game mode
^!8::
Run MultiMonitorTool /disable %Monitor_1_ID% %Monitor_2_ID% %Monitor_4_ID%
Run MultiMonitorTool /enable %Monitor_3_ID%
Run nircmd setdefaultsounddevice Q80A 1
Run C:\Users\Giang\AppData\Local\Playnite\Playnite.DesktopApp.exe --startfullscreen
Return
; ctrl + alt + 9 for TV mode
^!9::
Run nircmd setdefaultsounddevice Q80A 1
Run MultiMonitorTool /SetPrimary %Monitor_3_ID%
Return
; ctrl + alt + 0 for PC mode
^!0::
Run nircmd setdefaultsounddevice Casse 1
Run MultiMonitorTool /SetPrimary %Monitor_1_ID%
Return