Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 68fbbee60a | |||
| 6179429fb9 | |||
| e0db315595 | |||
| 0cbc101949 |
4 changed files with 89 additions and 35 deletions
BIN
KeyboardRemappings.ico
Normal file
BIN
KeyboardRemappings.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 361 KiB |
BIN
MouseOnKeyboard.ico
Normal file
BIN
MouseOnKeyboard.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 361 KiB |
10
README.md
10
README.md
|
|
@ -5,6 +5,7 @@ Collection of useful scripts for keyboard remappings and mouse operation without
|
||||||
Set of key bindings meant for the ANSI US layout set to:
|
Set of key bindings meant for the ANSI US layout set to:
|
||||||
|
|
||||||
- Facilitate the usage of spanish tilde keys without depending on a dead key.
|
- Facilitate the usage of spanish tilde keys without depending on a dead key.
|
||||||
|
- Add inverted exclamation and question marks, alongside en/em dashes and and double angle quotation marks.
|
||||||
- Remap modifier keys to accomodate a comfier usage.
|
- Remap modifier keys to accomodate a comfier usage.
|
||||||
- Toggle `Caps Lock` with both Shift keys.
|
- Toggle `Caps Lock` with both Shift keys.
|
||||||
|
|
||||||
|
|
@ -12,7 +13,10 @@ Collection of useful scripts for keyboard remappings and mouse operation without
|
||||||
|
|
||||||
- While holding `Left Alt`:
|
- While holding `Left Alt`:
|
||||||
- Press on any of the spanish vowel keys `(a, e, i, o, u)` to write their accented representation `(á, é, í, ó, ú)`.
|
- Press on any of the spanish vowel keys `(a, e, i, o, u)` to write their accented representation `(á, é, í, ó, ú)`.
|
||||||
- You can also write the Euro sign `€` pressing `p`, the umlaut u `ü` pressing `/` and the `ñ` with `n`.
|
- Press `/` to write `¿`, `[` to write `¡`.
|
||||||
|
- Press `- (hyphen)` to write `—`, or press `- (hyphen)` while holding `Shift` to write `–`.
|
||||||
|
- Press `RET` to write `«`, or press `RET` while holding `Shift` to write `»`.
|
||||||
|
- You can also write the Euro sign `€` pressing `p`, the umlaut u `ü` pressing `[` and the `ñ` with `n`.
|
||||||
- Press both `Shift` keys to toggle `Caps Lock`.
|
- Press both `Shift` keys to toggle `Caps Lock`.
|
||||||
- `Caps Lock` key acts as another `Left Control`.
|
- `Caps Lock` key acts as another `Left Control`.
|
||||||
- `Left Alt` **must** be released before inputting another macro character in order to prevent writing multiple, unintended macro characters when typing quickly.
|
- `Left Alt` **must** be released before inputting another macro character in order to prevent writing multiple, unintended macro characters when typing quickly.
|
||||||
|
|
@ -50,7 +54,7 @@ Collection of useful scripts for keyboard remappings and mouse operation without
|
||||||
|
|
||||||
## Compilation
|
## Compilation
|
||||||
|
|
||||||
Usage of this script requires **AutoHotKey_H v2** with Unicode support due to it's reliance on multi threading. AutoHotKey_H v2 is available on its project's page.
|
Usage of this script requires **AutoHotKey_H v2** with Unicode support due to its reliance on multi threading. AutoHotKey_H v2 is available on its project's page.
|
||||||
|
|
||||||
Alternatively, you can compile the script using the built-in compiler distributed with **AutoHotKey_H v2** with `v1` binary:
|
Alternatively, you can compile the script using the built-in compiler distributed with **AutoHotKey_H v2** with `v1` binary:
|
||||||
|
|
||||||
|
|
@ -60,7 +64,7 @@ Collection of useful scripts for keyboard remappings and mouse operation without
|
||||||
|
|
||||||
## False positive
|
## False positive
|
||||||
|
|
||||||
Windows Defender flags this script as malicious on some devices. Dealing with that would require submitting a single, compile executable for Microsoft to manually review and approve, and I'm not interested in dealing with all that.
|
Windows Defender flags this script as malicious on some devices. Dealing with that would require submitting a single, compiled executable to Microsoft for them to manually review and approve, and I'm not interested in dealing with all that.
|
||||||
|
|
||||||
# Use on administrator-owned windows
|
# Use on administrator-owned windows
|
||||||
|
|
||||||
|
|
|
||||||
118
piusareLite.ahk
118
piusareLite.ahk
|
|
@ -31,114 +31,171 @@ LShift & RShift::CapsLock
|
||||||
return
|
return
|
||||||
|
|
||||||
#if !hotkeyLock
|
#if !hotkeyLock
|
||||||
;;Adding tonic vowels with tilde, EUR sign, ü and ñ to non-ES keyboard
|
;;Adding tonic vowels with tilde, €, ü, ñ, ¿, ¡, – and — to non-ES keyboard
|
||||||
<!a::
|
<!a::
|
||||||
sendCheckCapsLock("U+00E1", "U+00C1")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00E1", "U+00C1")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
<!+a::
|
<!+a::
|
||||||
sendCheckCapsLock("U+00C1", "U+00E1")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00C1", "U+00E1")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
<!e::
|
<!e::
|
||||||
sendCheckCapsLock("U+00E9", "U+00C9")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00E9", "U+00C9")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
<!+e::
|
<!+e::
|
||||||
sendCheckCapsLock("U+00C9", "U+00E9")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00C9", "U+00E9")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
<!i::
|
<!i::
|
||||||
sendCheckCapsLock("U+00ED", "U+00CD")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00ED", "U+00CD")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
<!+i::
|
<!+i::
|
||||||
sendCheckCapsLock("U+00CD", "U+00ED")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00CD", "U+00ED")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
<!o::
|
<!o::
|
||||||
sendCheckCapsLock("U+00F3", "U+00D3")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00F3", "U+00D3")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
<!+o::
|
<!+o::
|
||||||
sendCheckCapsLock("U+00D3", "U+00F3")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00D3", "U+00F3")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
<!u::
|
<!u::
|
||||||
sendCheckCapsLock("U+00FA", "U+00DA")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00FA", "U+00DA")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
<!+u::
|
<!+u::
|
||||||
sendCheckCapsLock("U+00DA", "U+00FA")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00DA", "U+00FA")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
<!n::
|
<!n::
|
||||||
sendCheckCapsLock("U+00F1", "U+00D1")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00F1", "U+00D1")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
<!+n::
|
<!+n::
|
||||||
sendCheckCapsLock("U+00D1", "U+00F1")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00D1", "U+00F1")
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
;;U with umlaut ü
|
;;U with umlaut ü
|
||||||
<!/::
|
<!sc01B::
|
||||||
sendCheckCapsLock("U+00FC", "U+00DC")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00FC", "U+00DC")
|
||||||
|
KeyWait, LAlt
|
||||||
|
hotkeyLock := 0
|
||||||
|
return
|
||||||
|
<!+sc01B::
|
||||||
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00DC", "U+00FC")
|
||||||
|
KeyWait, LAlt
|
||||||
|
hotkeyLock := 0
|
||||||
|
return
|
||||||
|
|
||||||
|
;;Inverted question mark
|
||||||
|
<!/::
|
||||||
|
hotkeyLock := 1
|
||||||
|
Send, {U+00BF}
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
<!+/::
|
<!+/::
|
||||||
sendCheckCapsLock("U+00DC", "U+00FC")
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
Send, {U+00BF}
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
;;Adding euro sign
|
;;Euro sign
|
||||||
<!p::
|
<!p::
|
||||||
Send, {U+20AC}
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
Send, {U+20AC}
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
<!+p::
|
<!+p::
|
||||||
Send, {U+20AC}
|
|
||||||
hotkeyLock := 1
|
hotkeyLock := 1
|
||||||
|
Send, {U+20AC}
|
||||||
KeyWait, LAlt
|
KeyWait, LAlt
|
||||||
hotkeyLock := 0
|
hotkeyLock := 0
|
||||||
return
|
return
|
||||||
|
|
||||||
|
;;Inverted exclamation mark
|
||||||
|
<!sc01A::
|
||||||
|
hotkeyLock := 1
|
||||||
|
Send, {U+00A1}
|
||||||
|
KeyWait, LAlt
|
||||||
|
hotkeyLock := 0
|
||||||
|
return
|
||||||
|
|
||||||
|
<!+sc01A::
|
||||||
|
hotkeyLock := 1
|
||||||
|
Send, {U+00A1}
|
||||||
|
KeyWait, LAlt
|
||||||
|
hotkeyLock := 0
|
||||||
|
return
|
||||||
|
|
||||||
|
;;En and em dash
|
||||||
|
<!sc00C::
|
||||||
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+2014", "U+2013")
|
||||||
|
KeyWait, LAlt
|
||||||
|
hotkeyLock := 0
|
||||||
|
return
|
||||||
|
<!+sc00C::
|
||||||
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+2013", "U+2014")
|
||||||
|
KeyWait, LAlt
|
||||||
|
hotkeyLock := 0
|
||||||
|
return
|
||||||
|
|
||||||
|
;;Spanish double angle quotation mark
|
||||||
|
<!sc01C::
|
||||||
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00AB", "U+00BB")
|
||||||
|
KeyWait, LAlt
|
||||||
|
hotkeyLock := 0
|
||||||
|
return
|
||||||
|
<!+sc01C::
|
||||||
|
hotkeyLock := 1
|
||||||
|
sendCheckCapsLock("U+00BB", "U+00AB")
|
||||||
|
KeyWait, LAlt
|
||||||
|
hotkeyLock := 0
|
||||||
|
return
|
||||||
|
|
||||||
#if
|
#if
|
||||||
|
|
||||||
#if hotkeyLock
|
#if hotkeyLock
|
||||||
|
|
@ -332,12 +389,6 @@ return
|
||||||
<!+`::
|
<!+`::
|
||||||
Send, {U+007E}
|
Send, {U+007E}
|
||||||
return
|
return
|
||||||
<!1::
|
|
||||||
Send, {U+0031}
|
|
||||||
return
|
|
||||||
<!+1::
|
|
||||||
Send, {U+0021}
|
|
||||||
return
|
|
||||||
<!2::
|
<!2::
|
||||||
Send, {U+0032}
|
Send, {U+0032}
|
||||||
return
|
return
|
||||||
|
|
@ -411,12 +462,6 @@ return
|
||||||
<!+/::
|
<!+/::
|
||||||
Send, {U+003F}
|
Send, {U+003F}
|
||||||
return
|
return
|
||||||
<!.::
|
|
||||||
Send, {U+002E}
|
|
||||||
return
|
|
||||||
<!+.::
|
|
||||||
Send, {U+003E}
|
|
||||||
return
|
|
||||||
<!,::
|
<!,::
|
||||||
Send, {U+002C}
|
Send, {U+002C}
|
||||||
return
|
return
|
||||||
|
|
@ -453,7 +498,12 @@ return
|
||||||
<!+\::
|
<!+\::
|
||||||
Send, {U+007C}
|
Send, {U+007C}
|
||||||
return
|
return
|
||||||
|
|
||||||
|
<!sc039::
|
||||||
|
<!+sc039::
|
||||||
|
Send, {U+0020}
|
||||||
|
return
|
||||||
|
|
||||||
#if
|
#if
|
||||||
|
|
||||||
;;Where :C?*:U"X:: contains the hotstring trigger, this cASE BEING TYPING U " X ALL together. autohotkey gives us some control over how to interpret the hotstring, IN This Case By Inserting C?* We Are Telling Ahk To Be Case Sensitie (C), to trigger even as part of a word (?) and to trigger without an ending character such as space or newline(*).
|
;;Where :C?*:U"X:: contains the hotstring trigger, this cASE BEING TYPING U " X ALL together. autohotkey gives us some control over how to interpret the hotstring, IN This Case By Inserting C?* We Are Telling Ahk To Be Case Sensitie (C), to trigger even as part of a word (?) and to trigger without an ending character such as space or newline(*).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue