Skip to content

Instantly share code, notes, and snippets.

@dieseltravis
Last active January 3, 2023 15:58
Show Gist options
  • Save dieseltravis/674228f24a856527d6eb to your computer and use it in GitHub Desktop.
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)
; :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
@JeffO47
Copy link

JeffO47 commented Mar 4, 2016

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.

@Geobert
Copy link

Geobert commented May 30, 2016

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

@ryankrage77
Copy link

ryankrage77 commented May 16, 2018

@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.

@afanucchi
Copy link

afanucchi commented Mar 26, 2019

How to encode with BOM

image

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::(╯°□°)╯︵ ┻━┻

@matthewmorrone
Copy link

Might be a bit late, but here's something:

#Hotstring * C ? O
:::shrug::{U+00AF}{U+005C}({U+30C4}){U+002F}{U+00AF} ; ¯_(ツ)_/¯

@dieseltravis
Copy link
Author

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!

@akaleeroy
Copy link

; 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