win32api.VkKeyScan

int = VkKeyScan(char)

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

Parameters

char : chr

Specifies a character

Win32 API References

Search for VkKeyScan at msdn, google or google groups.