BlueM / cliclick

macOS CLI tool for emulating mouse and keyboard events
https://www.bluem.net
Other
1.59k stars 116 forks source link

Typing letter m opens emoji picker #144

Closed leoheck closed 2 years ago

leoheck commented 2 years ago

I was playing with your tool and I was having trouble while doing

cliclick t:./tmp_12345

After some tests I saw the letter "m" was launching the emoji picker.

Have you seen something like that? I am using MacBook Air M1 with macOS 12.3.1

BlueM commented 2 years ago

I am not able to reproduce this. What application was active when the Emoji picker appeared and what is the keyboard shortcut in that application (in your macOS’s localization) for invoking the Emoji picker?

leoheck commented 2 years ago

The application is Eeschema.app from Kicad.

cliclick is being used in the configure_and_plot() function on line 20, of my script here if you are curious about the sequence of cliclicks. https://github.com/leoheck/kiri/blob/main/bin/plot_kicad_sch_macos

Some background info: I have a tool that uses xdotool on linux to plot in .svg schematics generated with Kicad. There is no possible way of doing this from the command line. I would like to give the same support on macOS but since I could not make xdotool work on macOS even if using XQaurtz, I tried yours to replicate the same behavior which is working fine, except for some minor unknown things that happen like this m character not being inserted.

Buy the way, you can install Kicad with this brew recipe if interested.

brew install --cask kicad

I've noticed that sometimes when entering the m, in an input field of Eeschema, it opens the emoji picker, and sometimes it goes, moves the selection to the top menu. I also saw that running cliclick t:tmp_123455 when the terminal is selected, it works fine. Maybe the sequence of commands I am using might be adding something that is messing up when the character is being inserted.

BlueM commented 2 years ago

Sorry, this setup is too special to investigate the issue, much less fix it.

leoheck commented 2 years ago

Sure, I was just reporting back to you once I thought that the m character could have an important issue somehow.

I was not hoping you could fix it for me. Hopefully, I was able to reduce the amount of work for cliclick by dropping the typing completely and reducing its usage to a few clicks which was the best scenario for my application.

Anyways, thank you for this nice tool. I am closing this issue now... But feel free to open it again if you think I can do something to investigate this further (for you).