Skip to content

Instantly share code, notes, and snippets.

@mmv
Last active November 29, 2018 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmv/7c675a1985c8e8cb6564d9f71c9e097c to your computer and use it in GitHub Desktop.
Save mmv/7c675a1985c8e8cb6564d9f71c9e097c to your computer and use it in GitHub Desktop.
AutoHotKey script for quickly typing a bunch of symbols
; Alt+Gr is the modifier key that leaves a lot of room for improvement.
; so we add a few more useful modifiers here.
; em-dash is the one that made me start this whole script
<^>!-::SendInput —
<^>!b::SendInput β
<^>!m::SendInput µ
;; special shortcuts
:o:»osps::C:\Program Files\OutSystems\Platform Server\
:o:»osrun::C:\Program Files\OutSystems\Platform Server\running
:o:»osshare::C:\Program Files\OutSystems\Platform Server\share
:o:»nunitpath::C:\Program Files (x86)\NUnit 2.6.3\bin
:o:»aigit::C:\work\git\outsystems\ai-research\next-best-x-exploration\action-flows\src
:o:»lapham::lap0472.domain.outsystems.com
:o:»laprps::lap0427.domain.outsystems.com
:o:»osaddress::Rua Central Park 2, 2A
:o:»ospost::2795-242 Linda-a-Velha
:o:»osnif::504995634
; mathematical operators
:?o:»+-::±
:?o:»minus::− ; true minus sign
:?o:»times::×
:?o:»div::÷ ; division sign or obelus
:?o:»dot::⋅ ; "dot operator" (&sdot;), for multiplication, dot product
:?o:»>=::≥
:?o:»<=::≤
:?o:»!=::≠
:?o:»notequal::≠
:?o:»~=::≈
:?o:»approx::≈
:?o:»bigtilde::〜
:?o:»~~~::〜
:?o:»===::≡
:?o:»inf::∞
:?o:»beta::β
:?o:»pi::π
:?o:»sum::∑
:?o:»product::∏
; symbols
:?o:»copy::©
:?o:»reg::®
:?o:»tm::™
; symbols / arrows
:?o:»->::→
:?o:»=>::⇒
; faces
:?o:»0_0::ಠ_ಠ
:?o:»look-of-disapproval::ಠ_ಠ
:?o:»fliptable::(╯°□°)╯︵ ┻━┻
:?o:»shrug::¯\_(ツ)_/¯
:?o:»puttable::┬──┬ ノ( ゜-゜ノ)
:?o:»pervlook::( ͡° ͜ʖ ͡°)
; This section bellow enables AltGr+, followed by a sequence of symbols
; to produce some other symbol. We use the Input directive with some terminating
; characters and the Esc to cancel the whole thing.
; Input info: https://www.autohotkey.com/docs/commands/Input.htm
<^>!,::
Input, KeyPressed, E, {space}{enter}{tab}{esc}
if (ErrorLevel = "EndKey:Esc")
return
if (KeyPressed = "/=")
SendInput ≠
else if (KeyPressed = "+-")
SendInput ±
else if (KeyPressed = "~=")
SendInput ≈
else if (KeyPressed = "~~")
SendInput ∼
else if (KeyPressed = "~~~")
SendInput 〜
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment