[python-win32] getting Windows key codes

Tim Roberts timr at probo.com
Mon Mar 30 23:50:51 CEST 2015


Eric S. Johansson wrote:
> Set with some help for a friend of mine, I was able to implement the 
> system illustrated above. As a result I can mostly successfully use 
> speech recognition on Windows to dictate text into a variety of Linux 
> applications. I discover some problems which make me think that the 
> right solution is to capture windows events/key codes and translate them 
> into the lyrics equivalents. This way I think I can handle many of the 
> special function keys more easily.

I assume that should be "Linux", rather than "lyrics".

If you are doing speech recognition, where do Windows events and key
codes come into play?


> My question is two parts, first is how do I get access to these key 
> codes (equivalent to what's in the Python uinput module). And what kind 
> of framework does Windows demand (text window etc.) in order to be able 
> to expose these key codes.

Your question isn't clear.  What key codes and events do you want to
grab?  Perhaps you should give us a couple of specific scenarios that
describe what you want to have happen.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list