[Tutor] pyHook related doubt

Muguntharaj Subramanian mugunth at gmail.com
Tue Apr 29 09:16:29 CEST 2008

Hi All,
I am trying to create a custom keyboard driver program(like
http://www.tavultesoft.com/keyman/ ) for windows using python.
If this python script is run in the background, what is typed should be
converted into my native language.
For example if I hit 'a' in the keyboard, the output of the keyboard should
be a tamil unicode character(which will be pre-defined by user).

For making such program, i tried exploring pyHook based on this tutorial.

>From the tutorial, I have learned to capture the keys typed, but couldn't
understand how to change the keys before they reach the windows

Attached is the sample code I used (In this code basically i am trying to
change all the keys typed to 'b' in this code, but its not working )

Please guide me on how i can change the keys sent to the application using
pyHook. Or is there any other library that I can make use of to create such




"Your friendly hosting provider"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080429/aa50027e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyhook-example.py
Type: text/x-python
Size: 1038 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20080429/aa50027e/attachment-0001.py>

More information about the Tutor mailing list