Skip to content

Instantly share code, notes, and snippets.

@eduardoarandah
Last active June 4, 2024 13:09
Show Gist options
  • Save eduardoarandah/512a949e1d6e57d90bd1260ba3bfb062 to your computer and use it in GitHub Desktop.
Save eduardoarandah/512a949e1d6e57d90bd1260ba3bfb062 to your computer and use it in GitHub Desktop.
Cómo usar Acentos y Ñ en teclado inglés con AutoHotkey
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Caracteres en español usando CapsLock
; Presionar CapsLock mas la vocal para acentuarla
; Para la ñ se puede usar la n o la tecla ; (porque ahí estaba la ñ originalmente)
; Para la ¿ usamos CapsLock y la tecla que tiene actualmente el ?
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; mapear la n como ñ
CapsLock & n::
If GetKeyState("Shift", "P")
Send Ñ
Else
Send ñ
return
; mapear la ; como ñ
CapsLock & `;::
If GetKeyState("Shift", "P")
Send Ñ
Else
Send ñ
return
; mapear la ? como ¿
CapsLock & /::¿
; mapear las vocales
CapsLock & a::
If GetKeyState("Shift", "P")
Send Á
Else
Send á
return
CapsLock & e::
If GetKeyState("Shift", "P")
Send É
Else
Send é
return
CapsLock & i::
If GetKeyState("Shift", "P")
Send Í
Else
Send í
return
CapsLock & o::
If GetKeyState("Shift", "P")
Send Ó
Else
Send ó
return
CapsLock & u::
If GetKeyState("Shift", "P")
Send Ú
Else
Send ú
return
@JesusCCNA
Copy link

A los que no les funciona la ñ prueben sustituyendo {Asc 164} por esa letra

@samuelstx
Copy link

A los que les sale este caracter "ñ" es debido a que no marcaron esta opción al instalar AutoHotKeys:

imagen

Esta en el apartado "options" puedes ejecutar otra vez el instalador y darle a la opción de "modify" e ir a ese apartado y marcar esa casilla, despues vuelve a iniciar el script y ha disfrutar :)

@Beelzenef
Copy link

Muy útil, muchísimas gracias 🥰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment