onKeyUp (Callback)


onKeyUp (hWnd, key)

This callback is invoked when a key is released

Parameter Description
hWnd The handle to the window that had input focus when the key was released
key The virtual key code of the key

Returns

0

Remarks

This is a callback function. You must supply this function yourself. Register this callback with the WinXRegOnKeyDown function.

Virtual key codes for alphanumeric keys are their ASCII values. Virtual key codes for other keys can be found in the Win32 documentation.

Examples

FUNCTION onKeyUp (hWnd, key)

'assuming we have a console attached to this app,
'print the VK code of the key that was released
PRINT "VK Code: ";key

END FUNCTION

Related Links

WinXRegOnKeyUp
onKeyDown
onChar
WinXIsKeyDown