openstenoproject/plover — pull request #205 by SyntaxBlitz (2014-08-16 02:55:27+00:00)
Title: Use different SendKeys

When I was setting up a Windows development environment, I had trouble installing and configuring pywinauto. It only installs successfully on 64-bit Windows after some modification, and even after I got it installed, I could not send any keys from the application.

Since pywinauto is only used for sending keys, it can actually be eliminated as a dependency if pywin32 is used as an alternative.

One issue I noticed after making this change is that when I toggle Plover on (but not off), the command's stroke is not correctly backspaced. I'm not sure what's causing this, or even if it's being caused by my change; I was totally unable to use Plover (except using the release binary) before switching to pywin32 for sending keys, so I can't tell if this was already a problem with the version of the code I'm running (along with my environment).

If there's some justification for using pywinauto over pywin32 for this (efficiency, threading, suppressed keystrokes like I've pointed out), feel free to reject my pull request. I only made this change because pywinauto doesn't seem to work on my computer, and I figured it doesn't really need to be there anyway.