-
Notifications
You must be signed in to change notification settings - Fork 82
Make dragonfly "Text" action work with nordic keyboards #67
Comments
@madsBR Could you tell me the Windows version you're using and the exact name of the language pack or keyboard layout in your language/keyboard settings? I'm working on a port of the Dragonfly actions to C# to enable interacting with admin processes and one of the things I would like to address is better handling of international keyboard layouts. This would be a good test case for me to add. Also, @t4ngo hasn't been active on github or maintained this project in ages. You may want to check out one of the forks that's being more actively developed:
|
None of these forks worked for me (german keyboard). Monospark's fork doesn't even seem to work for my usecase (I'm using caster ontop of dragonfly). However 8327d75 from Monospark's fork seems to be the language fix and could be implemented in another fork. Edit and Solution: |
Yep, that was the change set I was referring to. @pimp22 have you tried the above solution to see if it works for your issues? |
Does this apply to the case where,
would work? That is, does it get |
@reckoner No, unfortunately this doesn't work for all UTF-8 characters. |
@Danesprite Thanks! You just saved me a lot of research. |
@reckoner No problem. I think the Windows API does allow for that, but it requires rewriting dragonfly's keyboard interface. One workaround for this is to use the from dragonfly import Clipboard, Key
Clipboard.set_system_text(u"σμ")
Key("c-v").execute() I think you can also use the You need to put |
I have a mostly functional implementation of this I've been using for most of 2018. It didn't require rewriting nearly as much as I expected it to. I'm not sure that I've even bothered to push it to GitHub. I'm up for discussing the issues in Gitter when I've finally finished this SimCity binge I've been on. |
Ah okay then, that's good to hear. Sounds good 👍 |
@Danesprite Thanks for the |
For the record, it looks like @Versatilus has merged his Unicode Text action PR into @Danesprite 's fork, so uninstalling original dragonfly then doing something like |
Add WSR/SAPI5 retain audio support; tweak documentation & gitignore
Atm the Text action bugs with all chars which require alt+ctrl on the Keyboard. On a nordic keyboard this includes
@£$€{[]}|
i fixed it by replacing
"elif" by "if" in here
https://github.com/t4ngo/dragonfly/blob/master/dragonfly/actions/keyboard.py
at line 121,122,137,138
but i don't know if it will have bug -consequences later..
The text was updated successfully, but these errors were encountered: