Reference

image\msref32.gif Keywords for Managing Events

 

Reflection's API includes several ways of managing events. This topic describes and lists events in the following three categories:

· Automation events

· OnEvent methods and properties

· DefineEvent methods and properties

Automation Events

Automation events are a standard part of OLE Automation APIs. Events of this type are part of an application's object library and are identified in the Visual Basic Editor Object Browser with a lighting bolt icon.

image\jump.gif AfterConnect event

image\jump.gif AfterDisconnect event

image\jump.gif AfterLoadSettings event

image\jump.gif AfterTerminalKey event

image\jump.gif AfterTransmitString event

image\jump.gif BeforeConnect event

image\jump.gif BeforeExit event

image\jump.gif BeforeLoadSettings event

image\jump.gif BeforeTerminalKey event

image\jump.gif BeforeTransmitString event

image\jump.gif BeforeUserDisconnect event

image\jump.gif BlockModeEnter event

image\jump.gif BlockModeExit event

image\jump.gif DefinedEvent event

image\jump.gif KeyboardEnabled event

image\jump.gif KeyboardLocked event

OnEvent Methods and Properties

Commands in this group are equivalent to using Reflection's Event Setup dialog box. For example, you can add items to Reflection's Event Setup dialog box using the OnEvent method, and delete items using the RemoveOnEvent method. Changes you make to Reflection using these commands can be saved to your settings file.

image\jump.gif CancelExitEvent method

image\jump.gif EnableOnEvent method

image\jump.gif OnEvent method

image\jump.gif RemoveOnEvent method

image\jump.gif EventDefined property

image\jump.gif EventsInterruptMenus property

image\jump.gif InactivityEventsIgnoreKeyboardMouse property

DefineEvent Methods and Properties

Commands in this group are defined using the DefineEvent method. This method defines an event without associating a specific action with that event. You can use subsequent commands to check for the occurrence of a defined event, or to wait for a defined event to happen. Commands in this group have no effect on the Event Setup dialog box; and events you define using the following methods are not saved as part of your settings file.

image\jump.gif CancelExitEvent method

image\jump.gif CheckEvent method

image\jump.gif CheckEventNumber method

image\jump.gif ClearEvents method

image\jump.gif DefineEvent method

image\jump.gif RemoveEvent method

image\jump.gif ResetEvent method

image\jump.gif WaitEvent method

image\jump.gif WaitEventNumber method

image\jump.gif WaitForEvent method

image\jump.gif EventDefined property

image\jump.gif EventsInterruptMenus property

image\jump.gif InactivityEventsIgnoreKeyboardMouse property

Wait Commands

Commands in this group wait for an event that is defined as part of the command. These commands have no effect on the Event Setup dialog box; and events you define this way are not saved as part of your settings file.

image\jump.gif Wait method

image\jump.gif WaitForIncomingData method

image\jump.gif WaitForHostTrigger method

image\jump.gif WaitForSilence method

image\jump.gif WaitForString method

image\jump.gif WaitForStrings method

image\jump.gif WaitUntil method