Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac key_sequence limited to 20 characters #68

Closed
farism opened this issue Oct 31, 2019 · 3 comments
Closed

Mac key_sequence limited to 20 characters #68

farism opened this issue Oct 31, 2019 · 3 comments

Comments

@farism
Copy link

farism commented Oct 31, 2019

It looks like CGEventKeyboardSetUnicodeString truncates strings down to 20 characters, and is undocumented. A few links of other individuals running into this problem:

https://apple.stackexchange.com/a/289046
https://forum.qt.io/topic/46579/cgeventkeyboardsetunicodestring-will-only-process-up-to-20-characters

Is this something we could handle at the enigo mac implementation level? e.g. split key sequence strings into 20 characters and send them in succession?

@pythoneer
Copy link
Member

Thanks for bringing up this issue. I haven't tested it yet but if that behaves like i understand it from your description and the links, this should be possible to mitigate within the enigo implementation, yes. I try to look into it in the next couple days.

@pythoneer
Copy link
Member

should be fixed by 949da70

@farism
Copy link
Author

farism commented Nov 12, 2019

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants