-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathToggle_switch.ahk
124 lines (107 loc) · 2.19 KB
/
Toggle_switch.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
#NoEnv
#Persistent
#SingleInstance
; Microsoft webpage for Excel shortcuts: https://support.microsoft.com/en-gb/office/keyboard-shortcuts-in-excel-1798d9d5-842a-42b8-9c99-9b7213f0040f
; Icons: https://www.urtech.ca/wp-content/uploads/2022/07/free-windows-system-icons-inside-c-windows-shell32-dll-with-their-numbers-1536x856.jpg
;^ Ctrl
;! Alt
;+ Shift
Gui, +LastFound +AlwaysOnTop -SysMenu -Caption
WindowID := WinExist()
IsIconA := true
Menu, Tray, Icon, shell32.dll, 44 ; Icon1
F1:: ; This is the hotkey for F1
IsIconA := !IsIconA
If (IsIconA)
Menu, Tray, Icon, shell32.dll, 44 ; Icon1
Else
Menu, Tray, Icon, shell32.dll, 46 ; Icon2
return
^F1:: ; This is the hotkey for Ctrl+F1
If (IsIconA)
Send, 0
Else {
Send, {ESC}
sleep, 120
Send, {Alt}8
}
return
^F2:: ; This is the hotkey for Ctrl+F2
If (IsIconA)
Send, 0
Else {
MsgBox, Hello world
}
return
^F3:: ;Group in Excel/ Numpad 7
If (IsIconA)
Send, 7
Else {
Send, +!{Right}
;Send, {ESC}
;sleep, 120
;Send, {Alt}5
}
return
^F4:: ; UnGroup in Excel/ Numpad 7
If (IsIconA)
Send, 8
Else {
Send, +!{Left}
;Send, {ESC}
;sleep, 120
;Send, {Alt}6
}
return
^F5:: ; This is the hotkey for Ctrl+F5
If (IsIconA)
Send, 9
Else {
Send, {ESC}
sleep, 120
Send, {Alt}9
}
return
^F6:: ; This is the hotkey for Ctrl+F6
If (IsIconA)
Send, 4
Else
MsgBox, Hello world
return
^F7:: ; This is the hotkey for Ctrl+F7
If (IsIconA)
Send, 5
Else
MsgBox, Hello world
return
^F8:: ; This is the hotkey for Ctrl+F8
If (IsIconA)
Send, 6
Else
MsgBox, Hello world
return
^F9:: ; This is the hotkey for Ctrl+F9
If (IsIconA)
Send, 1
Else
MsgBox, Hello world
return
^F10:: ; This is the hotkey for Ctrl+F10
If (IsIconA)
Send, 2
Else
MsgBox, Hello world
return
^F11:: ; This is the hotkey for Ctrl+F11
If (IsIconA)
Send, 3
Else {
Send, 00D8e000000RwwI
Send, {TAB}
Send, admin@dcs5.1v.com
Send, {TAB}
Send, Dotbcs01
Send, {TAB}
Send, j9eQ6gVX8iGoBcZWx9pDjmBA
}
return