Skip to content

Instantly share code, notes, and snippets.

@corbanmailloux
Created February 20, 2015 03:51
Show Gist options
  • Save corbanmailloux/5ae00f33bea7dfccfa69 to your computer and use it in GitHub Desktop.
Save corbanmailloux/5ae00f33bea7dfccfa69 to your computer and use it in GitHub Desktop.
Spanish Keyboard Mapping
; Spanish Accents
/*
Insert Spanish accents within 3 seconds of pressing hotkey.
á Á é É í Í ó Ó ú Ú ñ Ñ ¿ ¡
hotkey = '
hotkey "a" = "á"
hotkey "A" = "Á"
...etc.
Left Alt plus numpad number:
á 160 Á 193 ñ 164 Ñ 165
é 130 É 144 ¿ 168 ¡ 173
í 161 Í 0205 ü 129 Ü 154
ó 162 Ó 0211
ú 163 Ú 0218
*/
'::
StringCaseSense, On
Input key, L1 T3 C, ,?,!,a,A,e,E,i,I,o,O,u,U,n,N,1,/,{Space},'
Replace(key)
Replace(key)
{
IfEqual key, a, Send {Asc 160}
IfEqual key, A, Send {Asc 0193}
IfEqual key, e, Send {Asc 130}
IfEqual key, E, Send {Asc 144}
IfEqual key, i, Send {Asc 161}
IfEqual key, I, Send {Asc 0205}
IfEqual key, o, Send {Asc 162}
IfEqual key, O, Send {Asc 0211}
IfEqual key, u, Send {Asc 163}
IfEqual key, U, Send {Asc 0218}
IfEqual key, n, Send {Asc 164}
IfEqual key, N, Send {Asc 165}
IfEqual key, /, Send {Asc 168}
IfEqual key, 1, Send {Asc 173}
IfEqual key, {Space}, Send {Space}
IfEqual key, ', Send '
}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment