-
Notifications
You must be signed in to change notification settings - Fork 584
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
Hotkey script results in garbled text on remote Windows server #3649
Comments
Are you using Microsoft Remote Desktop to connect to the server? It looks like it's known to have issues with the key events generated by Hammerspoon: #1056, #2281. According to #2881 (comment), changing Remote Desktop's 'Keyboard Mode' setting from 'Scancode' to 'Unicode' can work around the problem. If I understand correctly, this basically makes Remote Desktop send which character is being typed, rather than which key.
You can also send each key individually using hs.eventtap.keyStroke or hs.eventtap.event.newKeyEventSequence, which should set the keycodes properly, but you'd need to figure out the correct combination of key + modifiers for each character yourself - Hammerspoon won't do it for you when using those functions. Footnotes |
I'd be interested to know if |
We need to merge in @asmagill's |
This issue needs more information. Please see our request above. |
No information was received, closing this Issue for now. |
I wrote the following script. I expect that when I press Ctrl+Shift+W while remotely connected to a Windows server, it will input "Welcome1". However, I am getting a string of garbled text instead. I am not sure how to fix this.
The text was updated successfully, but these errors were encountered: