Skip to content

Instantly share code, notes, and snippets.

@phdesign
Last active May 24, 2018 03:16
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 phdesign/f2504c266d52f07f6caa879a77ffbfc8 to your computer and use it in GitHub Desktop.
Save phdesign/f2504c266d52f07f6caa879a77ffbfc8 to your computer and use it in GitHub Desktop.
Some text emjoi autocompletes, e.g. :shurg: :table_flip:
; 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