Skip to content

Instantly share code, notes, and snippets.

@LuisEnMarroquin
Created June 16, 2021 19:12
Show Gist options
  • Select an option

  • Save LuisEnMarroquin/21c00baa634ce7dab8dad79f818ca558 to your computer and use it in GitHub Desktop.

Select an option

Save LuisEnMarroquin/21c00baa634ce7dab8dad79f818ca558 to your computer and use it in GitHub Desktop.
Auto Hot Key script with ALT and SHIFT for Spanish accents
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#SingleInstance Force ; Skips the dialog box and replaces the old instance automatically.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; ! = alt
; + = shift
; alt + key
!a:: Send, {Asc 160}
!e:: Send, {Asc 130}
!i:: Send, {Asc 161}
!o:: Send, {Asc 162}
!u:: Send, {Asc 163}
!n:: Send, {Asc 164}
; alt + shift + key
+!a:: Send, {Asc 0193}
+!e:: Send, {Asc 144}
+!i:: Send, {Asc 0205}
+!o:: Send, {Asc 0211}
+!u:: Send, {Asc 0218}
+!n:: Send, {Asc 165}
; alt + shift + key
+!?:: Send, {Asc 168}
+!!:: Send, {Asc 173}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment