macvim icon indicating copy to clipboard operation
macvim copied to clipboard

Some keypresses do not get pressed when using applescript to type out keys

Open dylan-chong opened this issue 7 years ago • 5 comments

Run this from the terminal and then wait a few seconds

mvim -u NONE; sleep 2; osascript -e 'tell application "System Events" to keystroke "aThis text should get typed out in insert mode"'

and you see this as a result

screen shot 2018-09-10 at 5 13 09 pm

which clearly does not show all of the text that should get typed out

dylan-chong avatar Sep 10 '18 05:09 dylan-chong

I can reproduce the issue. Just curious and also for triaging, is this something that was blocking you or you are just doing a sweep on different repos to report bugs?

ychin avatar Nov 27 '18 11:11 ychin

By the way the dictation setup is the OSX part of dictation-toolbox/aenea.

I can live with the bug existing, just would be nice if it is fixed. (Don't worry if it looks like a really complex fix)

On 28/11/2018, at 12:44 AM, Yee Cheng Chin [email protected] wrote:

I can reproduce the issue. Just curious and also for triaging, is this something that was blocking you or you are just doing a sweep on different repos to report bugs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dylan-chong avatar Nov 27 '18 19:11 dylan-chong

This wasn't blocking me, it's just noticeable for the dictation setup in using for my RSI, which uses AppleScript to type out text.

I have a temporary solution which is to type out a single key, wait 0.02s, type out the next key, etc, so it isn't blocking, it's just takes an extra second to type out a sentence.

On 28/11/2018, at 12:44 AM, Yee Cheng Chin [email protected] wrote:

I can reproduce the issue. Just curious and also for triaging, is this something that was blocking you or you are just doing a sweep on different repos to report bugs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dylan-chong avatar Nov 27 '18 19:11 dylan-chong

Ok good to know. Currently the priority is getting Mojave fully supported (which is long due) but I'll take a look at this afterwards.

ychin avatar Nov 28 '18 07:11 ychin

Sweet thanks. Good luck with the upgrade

On 28/11/2018, at 8:07 PM, Yee Cheng Chin [email protected] wrote:

Ok good to know. Currently the priority is getting Mojave fully supported (which is long due) but I'll take a look at this afterwards.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dylan-chong avatar Nov 28 '18 07:11 dylan-chong