Programming with Reflection
BeforeTerminalKey
event
Syntax Private Sub Session_BeforeTerminalKey(Key As Long, Continue As Boolean)
This event is triggered before Reflection transmits a terminal keystroke to the host.
Key Argument type: Enumeration
A terminal key constant that identifies the keystroke the user pressed.
If the value of Key is changed in the BeforeTerminalKey
event procedure, Reflection transmits the new Key value to the host.
For a list of terminal key constants, open the Reflection type library in the Visual Basic Object Browser and look under TerminalKeys. You can use the recorder to determine which constant is associated with a particular keystroke, or use the Reflection Keyboard Setup dialog box. When you click on a key in the terminal keyboard, you'll see an identifier, such as VtF8 or HPF2, at the bottom of the dialog box. The terminal key constant is this identifier preceded by "rc" and followed by "Key". For example in VT emulation, the F8 key is identified in the keyboard setup dialog box as VtF8, and is represented by the constant rcVtF8Key To determine the numeric equivalent for a terminal key constant, select the constant in the Object Browser list and look in the details pane.
Continue Argument type: Boolean
Specifies whether Reflection should transmit the keystroke to the host.
Reflection sets this argument to True when the event occurs. If you set
Continue to False in the event procedure, Reflection does not send a keystroke
to the host.
Notes
· Event procedures must be created in the code module for the Reflection Session object (ThisSession).