piusareLite: added more characters

This commit is contained in:
Hane 2024-01-28 16:06:16 +01:00
commit e0db315595
2 changed files with 52 additions and 18 deletions

View file

@ -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 and em dashes.
- 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,9 @@ 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 ``.
- 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.

View file

@ -31,7 +31,7 @@ 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") sendCheckCapsLock("U+00E1", "U+00C1")
hotkeyLock := 1 hotkeyLock := 1
@ -110,21 +110,35 @@ return
hotkeyLock := 0 hotkeyLock := 0
return return
;;U with umlaut ü ;;U with umlaut ü
<!/:: <!sc01B::
sendCheckCapsLock("U+00FC", "U+00DC") sendCheckCapsLock("U+00FC", "U+00DC")
hotkeyLock := 1 hotkeyLock := 1
KeyWait, LAlt KeyWait, LAlt
hotkeyLock := 0 hotkeyLock := 0
return return
<!+/:: <!+sc01B::
sendCheckCapsLock("U+00DC", "U+00FC") sendCheckCapsLock("U+00DC", "U+00FC")
hotkeyLock := 1 hotkeyLock := 1
KeyWait, LAlt KeyWait, LAlt
hotkeyLock := 0 hotkeyLock := 0
return return
;;Inverted question mark
<!/::
Send, {U+00BF}
hotkeyLock := 1
KeyWait, LAlt
hotkeyLock := 0
return
<!+/::
Send, {U+00BF}
hotkeyLock := 1
KeyWait, LAlt
hotkeyLock := 0
return
;;Adding euro sign ;;Euro sign
<!p:: <!p::
Send, {U+20AC} Send, {U+20AC}
hotkeyLock := 1 hotkeyLock := 1
@ -138,6 +152,35 @@ return
KeyWait, LAlt KeyWait, LAlt
hotkeyLock := 0 hotkeyLock := 0
return return
;;Inverted exclamation mark
<!sc01A::
Send, {U+00A1}
hotkeyLock := 1
KeyWait, LAlt
hotkeyLock := 0
return
<!+sc01A::
Send, {U+00A1}
hotkeyLock := 1
KeyWait, LAlt
hotkeyLock := 0
return
;;En and em dash
<!sc00C::
sendCheckCapsLock("U+2014", "U+2013")
hotkeyLock := 1
KeyWait, LAlt
hotkeyLock := 0
return
<!+sc00C::
sendCheckCapsLock("U+2013", "U+2014")
hotkeyLock := 1
KeyWait, LAlt
hotkeyLock := 0
return
#if #if
@ -332,12 +375,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 +448,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