Parameters
- sender
- keys
To cancel the action, set KeysSending to False.
'Create a buffer to hold the keys entered Dim buffer As String 'Add each key that is entered to the buffer Private Function Screen_KeysSending(ByVal sender As Variant, Keys As String) As Boolean buffer = buffer & Keys Screen_KeysSending = True End Function 'Before the screen is changed, append the buffer to a text file. Private Function Screen_ControlKeySending(ByVal sender As Variant, Key As Attachmate_Reflection_Objects_Emulation_OpenSystems.ControlKeyCode) As Boolean 'Open a text file and append the data in the buffer to the file Set fso = CreateObject("Scripting.FileSystemObject") Set ts = fso.OpenTextFile(ThisTerminal.SessionFilePath & ".log", 8, True) ts.Write buffer & "<Key(" & Key & ")>" & vbCrLf ts.Close 'Clear the buffer buffer = "" Screen_ControlKeySending = True End Function