%HI_RegKeyHandler function


Function
Control function for defining keyboard shortcuts


Declaration
%HI_RegKeyHandler(   IN INT _VKCode, IN BOOL _bCtrl, IN BOOL _bShift, IN BOOL _bAlt)
Parameters
_VKCodeCode of pressed key.
_bCtrlAttribute of the CTRL key state when the key _VKCode is pressed.
_bShiftAttribute of the SHIFT key state when the key _VKCode is pressed.
_bAltAttribute of the ALT key state when the key _VKCode is pressed.
Description
The control function defines keyboard shortcuts, the pressing of which generates an OnKeyDown event.
Unlike ENTRY OnKeyPress, this event is called even if the picture does not handle user input (has no focus) or is hidden (invisible). From the point of view of the user input operator, the event is called asynchronously and therefore has only an informative character - "the user pressed a defined key combination". The event is called even if there is a collision between system and application-defined keyboard shortcuts. If there are several pictures open at the same time in the HI process that serve the input, they operate independently of each other and are not affected in any way.


Example

 ; Shortcut ALT + a ALT+a
 %HI_RegKeyHandler(61,@FALSE,@FALSE,@TRUE) 
 
 


Napíšte komentár