My AutoHotkey Script for Typing Special Characters

This is the AutoHotkey script I use to type common special characters, including Spanish accented letters, superscripts, math and science symbols. I’ve also included shortcuts to simulate the media control keys.

You can copy and paste the script, or download a precompiled version that doesn’t require AutoHotkey to run.

You can put it in %appdata%\Microsoft\Windows\Start Menu\Programs\Startup (navigate to this quickly by running “shell:startup” in the Run box) to have it automatically run at Windows startup.

(This is in AutoHotkey 2.0 syntax.

‘!’ means Alt, ‘+’ means Shift, ‘^’ means Control, so ‘!a’ means pressing ‘Alt’ and ‘A’ together.)

;Spanish Characters
!a::SendText "á"
!e::SendText "é"
!i::SendText "í"
!o::SendText "ó"
!u::SendText "ú"
!n::SendText "ñ"
!^u::SendText "ü"
+!a::SendText "Á"
+!e::SendText "É"
+!i::SendText "Í"
+!o::SendText "Ó"
+!u::SendText "Ú"
+!n::SendText "Ñ"
+!^u::SendText "Ü"
+!?::SendText "¿"
+!!::SendText "¡"

;Superscripts
!1::SendText "¹"
!2::SendText "²"
!3::SendText "³"
!4::SendText "⁴"
!5::SendText "⁵"
!6::SendText "⁶"
!7::SendText "⁷"
!8::SendText "⁸"
!9::SendText "⁹"
!0::SendText "⁰"

;Subscripts
+!1::SendText "₁"
+!2::SendText "₂"
+!3::SendText "₃"
+!4::SendText "₄"
+!5::SendText "₅"
+!6::SendText "₆"
+!7::SendText "₇"
+!8::SendText "₈"
+!9::SendText "₉"
+!0::SendText "₀"

;Math Operators
!x::SendText "×"
!/::SendText "÷"
!=::SendText "±"
!`::SendText "≈"
!,::SendText "≤"
!.::SendText "≥"
!;::SendText "∵"
!'::SendText "∴"

;Useful Symbols
!c::SendText "°C"
!y::SendText "¥"
!-::SendText "—"
+!y::SendText "✅"
+!x::SendText "❌"

;Greek Letters
!b::SendText "β"
!d::SendText "δ"
+!d::SendText "Δ"
!m::SendText "μ"
!p::SendText "ϕ"
+!p::SendText "Φ"
!r::SendText "ρ"
!s::SendText "σ"
+!s::SendText "Σ"
!t::SendText "θ"
+!t::SendText "Θ"
!w::SendText "ω"
+!w::SendText "Ω"

;Media Controls
![::Media_Prev
!]::Media_Next
!Space::Media_Play_Pause

;Arrows
!Up::SendText "↑"
!Down::SendText "↓"
!Left::SendText "←"
!Right::SendText "→"
Subscribe
Notify of
guest

1 Comment
Oldest
Newest
Inline Feedbacks
View all comments
David

Thanks!!!!!

Last edited 2 years ago by David