Last active
January 3, 2023 15:58
-
-
Save dieseltravis/674228f24a856527d6eb to your computer and use it in GitHub Desktop.
autohotkey script to replace 🤷 with ¯\_(ツ)_/¯ (and a few other common unicode art emoji)
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
; :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 |
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 (╯°□°)╯︵ ┻━┻
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.