-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAccenter.ahk
100 lines (87 loc) · 1.96 KB
/
Accenter.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
#NoEnv ; For security
#SingleInstance force
;Created by Saketh Reddy
;Menu Stuff
Menu, Tray, NoStandard
Menu, Tray, Add, Enable/Disable, #c
Menu, Tray, Check, Enable/Disable
Menu, Tray, Add, About, AboutP
Menu, Tray, Add, Exit, Exit
;Menu, Tray,
;Initialize active
var:=1
Exit(){
ExitApp
}
AboutP(){
Gui, +OwnDialogs
Gui, Add, Text,, If you see this, just close it (sorry!)
Gui, Show
OnMessage(0x53, "WM_HELP")
;1+64+256+16384
MsgBox,16705,About Accenter,
(
Windows Accenter by Saketh Reddy
View the source code and tutorial at GitHub: `n(https://github.com/SpiritSeal/WindowsAccenter)
Press "OK" to view the GitHub, "Help" to view the Tutorial, and "Cancel" to close this
)
IfMsgBox Ok
okSelected()
else
Gui, Destroy
}
;For Debugging
;#1::AboutP()
okSelected(){
Run, https://github.com/SpiritSeal/WindowsAccenter
Gui, Destroy
}
WM_HELP()
{
Run, https://github.com/SpiritSeal/WindowsAccenter/blob/master/README.md
}
#c::
Menu, Tray, ToggleCheck, Enable/Disable
var ^= 1
if (var){
;MsgBox The Accenter Script is now Enabled, press Win+C again to disable it.
TrayTip , Accenter Enabled!, The Accenter Script is now Enabled`, press Win+C again to disable it`.
}
if (!var){
;MsgBox The Accenter Script is now Disabled, press Win+C again to re-enable it.
TrayTip , Accenter Disabled!, The Accenter Script is now Disabled`, press Win+C again to re-enable it`.
}
return
;Toggle
#Hotstring *?B
#If var
;Spanish Characters
::a/::á
::e/::é
::i/::í
::o/::ó
::u/::ú
::n~::ñ
::n/::ñ
::?/::¿
::!/::¡
::a``::á
::e``::é
::i``::í
::o``::ó
::u``::ú
::n``::ñ
::?``::¿
::!/::¡
::a\::á
::e\::é
::i\::í
::o\::ó
::u\::ú
::n\::ñ
::?\::¿
::!\::¡
::u:/::ü
::u:``::ü
::u:\::ü
#If