-
-
Save dieseltravis/674228f24a856527d6eb to your computer and use it in GitHub Desktop.
; :shrug: ¯\_(ツ)_/¯ | |
:B0:`:shrug:: | |
if (A_EndChar == ":") { | |
SendInput, {BS 7}¯\_(ツ)_/¯ | |
} | |
return | |
; :whatever: ◔_◔ | |
:B0:`:whatever:: | |
if (A_EndChar == ":") { | |
SendInput, {BS 10}◔_◔ | |
} | |
return | |
; :whyy: щ(ºДºщ) | |
:B0:`:whyy:: | |
if (A_EndChar == ":") { | |
SendInput, {BS 6}щ(ºДºщ) | |
} | |
return | |
; :happy: (゚ヮ゚) | |
:B0:`:happy:: | |
if (A_EndChar == ":") { | |
SendInput, {BS 7}(゚ヮ゚) | |
} | |
return | |
; :flip: (╯°□°)╯︵ ┻━┻ | |
:B0:`:flip:: | |
if (A_EndChar == ":") { | |
SendInput, {BS 6}(╯°□°)╯︵ ┻━┻ | |
} | |
return |
Hi, thanks for this gist!
I can't find out why, but I'm getting wrong input using this
¯_(ツ)_/Â
Seems that the unicode is not well send by autohotkey (I'm using unicode version of autohotkey though)
Any idea on this?
EDIT : my files were not in UTF-8 with BOM
I had to add an extra "¯" to shrug in order to have the left hand
@Geobert, how does one enable 'BOM'? I assume I'll need a different text editor than notepad?
EDIT: Never mind, did it with Sublime Text, but no difference. I'll try creating it from scratch.
How to encode with BOM
My own simpler code with instructions
; Open a new Notepad++ document
; In the menu bar, click on Encoding > Encode in UTF-8 BOM
; Paste this into Notepad++
; Save as emoji_expansion.ahk
; run
; type "!shrug" (without quotes) to get ¯\_(ツ)_/¯
::!shrug::¯\_(ツ)_/¯
::!whatever::◔_◔
::!why::щ(ºДºщ)
::!happy::(゚ヮ゚)
::!flip::(╯°□°)╯︵ ┻━┻
Might be a bit late, but here's something:
#Hotstring * C ? O
:::shrug::{U+00AF}{U+005C}({U+30C4}){U+002F}{U+00AF} ; ¯_(ツ)_/¯
sorry folks, I'm just seeing all these comments today (thanks github!) - but does everyone have their scripts working OK?
I use notepad2 and set it to default to UTF-8 by default.
@afanucchi that is much simpler, I like it!
; textfaces-hotstrings.ahk UTF-8 with BOM
SendInput, (╯°□°)╯︵ ┻━┻ ; accidental derp factor increase (╯□°°)╯︵ ┻━┻)
SendInput, {Text}(╯°□°)╯︵ ┻━┻ ; output fixed (╯°□°)╯︵ ┻━┻
This may be a stupid question, but how the heck do you trigger these? I've tried everything and wondering if it's just a syntax change with newer versions.