win32api.MapVirtualKey

int = MapVirtualKey(vk, type , hlayout )

Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.

Parameters

vk : int

The virtual key code.

type : int

The type of conversion to make - see the API

hlayout=None : handle

The keyboard layout to use. If not specified, the API function MapVirtualKey will be called. If it is specified MapVirtualKeyEx will be called.

Comments

implemented by calling the unicode versions of the API (MapVirtualKeyW/MapVirtualKeyExW)