Last active
May 24, 2018 03:16
-
-
Save phdesign/f2504c266d52f07f6caa879a77ffbfc8 to your computer and use it in GitHub Desktop.
Some text emjoi autocompletes, e.g. :shurg: :table_flip:
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
; NOTE: This must be saved as UTF-8 BOM | |
emoji(text){ | |
If (A_EndChar = ":") { | |
SendInput %text% | |
} Else { | |
StringMid, s, A_ThisHotKey, 3 ; A_ThisHotKey contains 2 starting colons | |
SendRaw %s%%A_EndChar% | |
} | |
} | |
#IfWinActive | |
#Hotstring ? | |
:::shrug:: | |
emoji("¯\_(ツ)_/¯") | |
return | |
:::table_flip:: | |
emoji("(ノ°Д°)ノ︵ ┻━┻") | |
return | |
#Hotstring ?0 | |
#IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment