-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremap-numpad.ahk
49 lines (44 loc) · 1022 Bytes
/
remap-numpad.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
#SingleInstance Force
SetTitleMatchMode RegEx ;allow regex match to window titles
;toggle between upper- & lowercase
isLowercase := false
!F23::
Clipboard =
Send ^c
ClipWait, 0
If isLowercase
SendInput % Format("{Text}{:U}", Clipboard)
Else
SendInput % Format("{Text}{:L}", Clipboard)
isLowercase := !isLowercase
return
;Outlook Switcher/Starter
F14::
if WinActive("Kalender - .*") and WinActive(".*- Outlook")
{
Send ^{1}
}
else if WinActive(".*- Outlook")
{
Send ^{2}
} else {
if WinExist(".*- Outlook") {
WinActivate ; Use the window found by WinExist.
} else {
Run C:\Program Files (x86)\Microsoft Office\Office16\OUTLOOK.EXE
}
}
return
;Open Teams Search
F1::
if WinExist(".*\| Microsoft Teams") {
WinActivate ;
Send ^e
}
return
!F24::
if WinExist(".*\| Microsoft Teams") {
WinActivate ;
Send ^e
}
return