win32api.VkKeyScan

int = VkKeyScan(char, char )

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

Parameters

char : string or unicode

A byte or unicode string of length 1. If a byte string is passed VkKeyScanA will be called, otherwise VkKeyScanW will be called.

char : chr

Specifies a character

Win32 API References

Search for VkKeyScanA at msdn, google or google groups.

Search for VkKeyScanW at msdn, google or google groups.