Fires when the user presses a character key.

Parameters

ParameterDescription
CharacterThe character pressed
ShiftIndicates whether or not the SHIFT key is down
CtrlIndicates whether or not the CTRL key is down
AltIndicates whether or not the ALT key is down
RepeatCountThe number of times the keystroke is repeated when user holds down the key

Remarks

The OnChar event fires when the user presses a character on the keyboard. The Character parameter contains the character being pressed. The Shift, Ctrl, and Alt keys indiciate the status of the SHIFT, CTRL, and ALT keys respectively. If any of these keys are pressed, then the respective parameter is 1. The RepeatCount parameter is a count of how many times the character has been repeated due to holding the key down.

Example

Transfer Param1 to Character 
Transfer Param2 to Shift 
Transfer Param3 to Ctrl 
Transfer Param4 to Alt 
Transfer Param5 to RepeatCount 

 If RepeatCount EQ 0 then 
   // A character haas been pressed for the first time 
end

See Also

OnModifyKey

  • No labels