Last active
November 29, 2018 11:03
-
-
Save mmv/7c675a1985c8e8cb6564d9f71c9e097c to your computer and use it in GitHub Desktop.
AutoHotKey script for quickly typing a bunch of symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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" (⋅), 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