Class

Item Description

Use with:

Startup scripts, Windows

SecureLogin Version:

All

Type:

Dialog specifier

Usage:

Class Window-Class

Arguments:

Window-Class

A string specifying the window class that this statement will match.

Description:

When a window is created, it is based on a template known as a window class. The Class command checks to see if the class of the newly created window matches its Window-Class argument.

If the window matches the Window-Class argument, the execution of the script continues to the next line. If the window does not match the Window-Class argument, execution continues at the next dialog statement.

You can determine the class by using Window Finder. See Finding Control IDs.

Example:
Windows Script
The dialog box generated by the application is checked to determine if the Window Class is #32770. If True and its title is "Login", that section of the script executes. If False, the script checks the next Dialog block.

# Login Dialog Box 
Dialog
Title "Login"
Class #32770
EndDialog
Type $Username #1001 
Type $Password #1002
Click #1