Event

Item Description

Use with:

Win32 application scripts

SecureLogin Version:

3.5

Type:

Dialog specifier

Usage:

Event Event

Arguments:

Event

The application event to monitor. For a list of events that you can specify, see Event Specifiers.

Description:

Scripts generally execute when an application window is created. This timing corresponds to the WM_CREATE message that is received from an application window at startup.

By adding the Event specifier to a dialog block, you can override this behavior, so that a script now executes when (and only when) the specified message is generated. If no Event specifier is given, it is equivalent to "Event WM_CREATE".

You can apply the Event specifier only within a Dialog and EndDialog statement block.

Specify only one Event per Dialog block. If there is a requirement to monitor for multiple events, each must be specified within its own Dialog block.

Syntax Examples:

Dialog
Class "someclass"
Event WM_ACTIVATE
EndDialog
Messagebox "Caught the WM_ACTIVATE message"