-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ahk
90 lines (72 loc) · 2.59 KB
/
index.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
; Shortcuts for the letter "Ñ" and "ñ"
^+!n::SendInput, % (GetKeyState("CapsLock", "T") ? "ñ" : "Ñ")
^!n::SendInput, % (GetKeyState("CapsLock", "T") ? "Ñ" : "ñ")
; Shortcuts for the symbol "¿"
^!/::Send ¿
; Shortcuts for the symbol "¡"
^!1::Send ¡
; Shortcuts for vowels with accent
; Letter "Á" and "á"
^+!a::SendInput, % (GetKeyState("CapsLock", "T") ? "á" : "Á")
^!a::SendInput, % (GetKeyState("CapsLock", "T") ? "Á" : "á")
; Letter "É" and "é"
^+!e::SendInput, % (GetKeyState("CapsLock", "T") ? "é" : "É")
^!e::SendInput, % (GetKeyState("CapsLock", "T") ? "É" : "é")
; Letter "Í" and "í"
^+!i::SendInput, % (GetKeyState("CapsLock", "T") ? "í" : "Í")
^!i::SendInput, % (GetKeyState("CapsLock", "T") ? "Í" : "í")
; Letter "Ó" and "ó"
^+!o::SendInput, % (GetKeyState("CapsLock", "T") ? "ó" : "Ó")
^!o::SendInput, % (GetKeyState("CapsLock", "T") ? "Ó" : "ó")
; Letter "Ú" and "ú"
^+!u::SendInput, % (GetKeyState("CapsLock", "T") ? "ú" : "Ú")
^!u::SendInput, % (GetKeyState("CapsLock", "T") ? "Ú" : "ú")
; Help menu
^!h::
Gui, MyGui:Add, Text, center y20 w400, Help menu (click on options)
Gui, MyGui:Add, Text, center vShortcuts1 gShortcuts1, Shortcuts for the letter "Ñ" and "ñ"
Gui, MyGui:Add, Text, center vShortcuts2 gShortcuts2, Shortcuts for the symbol "¿"
Gui, MyGui:Add, Text, center vShortcuts3 gShortcuts3, Shortcuts for the symbol "¡"
Gui, MyGui:Add, Text, center vShortcuts4 gShortcuts4, Shortcuts for vowels with accent
Gui, MyGui:Show
return
Shortcuts1:
MsgBox
(
Detects if the caps lock is active. With the caps lock enabled it does the opposite (instead of capital letters it is lowercase and vice versa)
Uppercase: Ctrl + Shift + Alt + n
Lowercase: Ctrl + Alt + n
)
Gui, MyGui:Destroy
return
Shortcuts2:
MsgBox
(
Ctrl + Alt + /
)
Gui, MyGui:Destroy
return
Shortcuts3:
MsgBox
(
Ctrl + Alt + 1
)
Gui, MyGui:Destroy
return
Shortcuts4:
MsgBox
(
Detects if the caps lock is active. With the caps lock enabled it does the opposite (instead of capital letters it is lowercase and vice versa)
Uppercase: Ctrl + Shift + Alt + a
Lowercase: Ctrl + Alt + a
Uppercase: Ctrl + Shift + Alt + e
Lowercase: Ctrl + Alt + e
Uppercase: Ctrl + Shift + Alt + i
Lowercase: Ctrl + Alt + i
Uppercase: Ctrl + Shift + Alt + o
Lowercase: Ctrl + Alt + o
Uppercase: Ctrl + Shift + Alt + u
Lowercase: Ctrl + Alt + u
)
Gui, MyGui:Destroy
return