input simulation Problem with Unicode

https://github.com/nekename/OpenDeck/issues/179
Hi, as discussed on Discord here a short "Bug"-Report: [t("…")] is sending fine Ascii-Text, unicode not so... [k(u('a'))], [k(u('a'),c)] doesn't send well, it can't, if 1st the syntax is incorrect and 2nd I totally misunderstand the whole thing. [k(uni('2'))] sent the keypress for 2. but it would be really nice, if I can send unicode-text (including Unicode beyond \uffff) via "text" ( [t("…")] ) I'll help myself with the clipboard and wl-copy … cheers and thanks. Torax
Solution:
that text isn't sending unicode is an upstream issue. That would be something to request in the Enigo Library.
Jump to solution
11 Replies
Solution
Terrorwolf
Terrorwolf2w ago
that text isn't sending unicode is an upstream issue. That would be something to request in the Enigo Library.
Terrorwolf
Terrorwolf2w ago
The issue that k uni isn't sending emojis tho would be needed to be checked if its OpenDeck or Enigo.
ToraxMalu
ToraxMaluOP2w ago
question ist, what does key(unicode()) really sending? only a keystroke – then it can't send emojis, which aren't on the current keyboard layout – or really text. in windows autohotkey has the same issue: keystorkes need to be processed different than sent text
Terrorwolf
Terrorwolf2w ago
Not sure right now, but I believe its really aending the unicode of whatever you input. I think somebody already has gotten emojis to work.
ToraxMalu
ToraxMaluOP2w ago
LEL … i got it … k(uni()) seems to post a single key - and if the key os not in the layout, it doesn't send it … but there is a workaround
Terrorwolf
Terrorwolf2w ago
I will try it when @ home
ToraxMalu
ToraxMaluOP2w ago
⚠️ I speak about wayland-environment! 1. install wl-clipboard 2. place Multi-Action in OpenDeck 3. place Run Command and Input Simulation in the Multi Action 4. in Run Command input following command: printf '<text>'|wl-copy 5. in Input Simulation input the sequence [k(ctrl,p),k(uni('v')),k(ctrl,r)]. It doesn't matter, whether you place the commands in Key down oder Key up — only restriction: You can't place both commands in one block. looks like a timing issue. thanks for your help yesterday. as said, the trouble with the unicode-chars is solved with the quirky way via the clipboard. – but another problem arose: X11-Programs get the key strokes in wayland environment double …?
Terrorwolf
Terrorwolf2w ago
Thats a known issue upstream. (Don't have the link right now)
ToraxMalu
ToraxMaluOP2w ago
k, good to know, it is known fine enough for me and thanks for the software – it really helps in my transition from windows over to linux
nekename
nekename2w ago
no worries, maybe leave a star ⭐ on GitHub, it helps out the project
ToraxMalu
ToraxMaluOP2w ago
aye

Did you find this page helpful?