Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can my AutoHotkey script only type some emoji?

I have set up a small AutoHotkey script that uses hotstrings to allow me to type a few emoji and other special characters:

#SingleInstance force

#Hotstring * ?

::–::–
::†::†

::π::𝜋

::&shrug;::¯\_(ツ)_/¯
::&tm;::™
::&c;::©
::&r;::®
::&tableflip;::(╯°□°)╯︵ ┻━┻
::&music;::♫
::&piano;::🎹
::&cmark;::✓
::&xmark;::✗
::&hourglass;::⌛

The script is also available on PasteBin.

It all works in my text editor: screengrab from text editor

However, some replacements don't work everywhere, for example in Telegram Desktop: screengrab from Telegram Desktop

Both emoji were originally copied from Telegram Desktop, so they are definitely supported in it.

Why isn't this working as expected?

I'm running AutoHotkey Unicode 64-Bit in version 1.1.23.3 on Windows 10 (version 1511), Sublime Text 3 (3103) and Telegram Desktop 0.9.28.

like image 240
fefrei Avatar asked Mar 16 '16 08:03

fefrei


1 Answers

I answered a similar question in the past: Autohotkey Replace 2 specific character with one
I don't really know what the problem was, but we managed to get around the problem by making use of the clipboard. Maybe the same method can be used for your scenario.

like image 129
Forivin Avatar answered Sep 18 '22 08:09

Forivin