win32api.VkKeyScanEx

int = VkKeyScanEx(char, hkl )

Translates a character to the corresponding virtual-key code and shift state.

Parameters

char : chr

Specifies a character

hkl : PyHANDLE

Handle to a keyboard layout at returned by win32api::LoadKeyboardLayout

Win32 API References

Search for VkKeyScanEx at msdn, google or google groups.