-
Notifications
You must be signed in to change notification settings - Fork 82
Keyboard layout #38
Comments
What IDE are you using? What happens when you try the command in notepad? |
The problem is not IDE-specific ... same output goes into command line or notepad (except in notepad, ^N is interpreted as CTRL+N and it tries to create new file in the end) |
I'm also using Windows 7, Python 2.7, and the en_us keyboard layout, but that code executes fine for me. Do you get similar results using (Text("Hello world ") + Key("leftparen,rightparen,space,leftbrace,rightbrace")).execute() |
Yes. Same result with your code. |
I solved the issue - looks like the problem lies in Natlink in the end. Since it can affect anyone, who does not use US keyboard as a primary one, I post a solution here: The problem lies in the fact, that Natlink detects keyboard layout not based on the CURRENTLY ACTIVE keyboard layout, but using the "Default input language" (Windows 7: Control Panel -> Region and language -> Change keyboard or other input methods -> Change keyboard... and here you can set the Default input language, which has to be en_us) The other way, how to solve this issue for international (non-US) Windows users, is to add this code to your dragonfly grammar scripts:
The code must be on the very top of your script (ABOVE dragonfly import). |
Is there a specific Keyboard layout in Windows, that has to be active, for Dragonfly to work? If yes, didn't find any information in docs.
Example of script:
leads to this output:
which causes funny behaviour of IDE, when trying to code by voice...
(Windows 7, Python 2.7, active keyboard layout: U.S. English)
The text was updated successfully, but these errors were encountered: