[python-win32] letter and number key codes for win32con

Alex Hall mehgcap at gmail.com
Sat Jan 16 02:53:28 CET 2010


Hello all,
I am successfully using hotkeys with win32con (thanks so much for that 
tip!!) but I want to use the numbers 1-0 (on the keyboard, not the numpad) 
instead of F keys. The code example I have says to use ord('x'), but I am 
not quite sure what this means or how to give the result of ord() to the 
hotkey dictionary. Does anyone know the codes to use? I have tried using 
win32con.49, win32con.VK_49, and all kinds of variants (using 1 instead of 
49, using ord() right in the dictionary, using single quotes...) Google is 
not much help on this; the only forum I found talking about this said that 
it could not be done.


Have a great day,
Alex
Email: mehgcap at gmail.com 



More information about the python-win32 mailing list