Send and the Emoji Panel

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
dijek
Posts: 5
Joined: 10 Nov 2023, 00:15

Send and the Emoji Panel

06 May 2024, 14:44

I noticed that Send does not seem to work to put text into the search bar of the Windows emoji panel (the one that you can pull up with Win + .). For example, with this following really short test script, the defined hotkey works just fine in other contexts but will not be able to search for the happy face emojis if the emoji panel is pulled up:

Code: Select all

!^1::Send('happy')
Is there any way around this?
User avatar
boiler
Posts: 17184
Joined: 21 Dec 2014, 02:44

Re: Send and the Emoji Panel

06 May 2024, 16:57

Works for me.
dijek
Posts: 5
Joined: 10 Nov 2023, 00:15

Re: Send and the Emoji Panel

06 May 2024, 17:24

@boiler
That's weird. To be clear, are you in windows 11? I just checked my other Windows 10 machine, and it seems like searching on the Windows 10 emoji panel works differently and is compatible with Send. Specifically, it seems like the panel uses the text field from any other program as its search field and then replaces the result when you click. However, on my Windows 11 laptop it uses its own search box and the Send command doesn't work. If it's just my computer, I'm not sure what's wrong.
gregster
Posts: 9081
Joined: 30 Sep 2013, 06:48

Re: Send and the Emoji Panel

06 May 2024, 17:27

I can reproduce it (being on Win11 right now).
Different send modes, key delays or running as admin don't seem to help. Even pasting the clipboard via AHK doesn't work.
User avatar
boiler
Posts: 17184
Joined: 21 Dec 2014, 02:44

Re: Send and the Emoji Panel

06 May 2024, 17:50

I am on Win10, so that is apparently the difference.
User avatar
jiming0516
Posts: 4
Joined: 10 Mar 2019, 21:41

Re: Send and the Emoji Panel

07 May 2024, 00:21

Try this

Code: Select all

Send Chr("0x1F600") ;grinning face
dijek
Posts: 5
Joined: 10 Nov 2023, 00:15

Re: Send and the Emoji Panel

07 May 2024, 15:33

I@jiming0516 I didn't actually need to do that specific search; I actually am using a script I wrote that replaces most of the letters that I type to give me a greater range of characters. I discovered that it didn't work with the emoji panel and then shrunk it down to the simplest example script with the same problem. It's not super important, but it would be convenient to be able to insert any emoji on the computer without having to look up its specific codepoint. If I need to I can just disable all hotkeys before trying to use the emoji panel, but it's slow. Thank you though.
User avatar
jiming0516
Posts: 4
Joined: 10 Mar 2019, 21:41

Re: Send and the Emoji Panel

07 May 2024, 19:39

@dijek
Sorry for not being detailed enough. In fact, you're right, we can't send characters when the emoji panel is present with your example. But I found that related the target window.
Here is my code win10 AHK v2 when show the panel:

Code: Select all

F1::Send Chr("0x1F600") "happy"
F2::Send "happy"
:*:/ha::happy
VScode F1 work, F2 not, /ha show 'appy' :o
Notepad++ F1 work, F2 not, /ha not
win notepad F1 work, F2 work, /ha work too.
by the way, the ctrl or alt key will exit the panel when typing.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Noitalommi_2 and 26 guests