Using Advanced Windows Scripting

Advanced Windows Scripting (AWS) is an extension to the single sign-on scripting language. AWS enables arbitrary Windows messages to trigger scripts. In earlier versions of SecureLogin, a script written for an application was triggered when (and only when) the application sent a WM-CREATE message. AWS provides Event, which is a single new specifier.

The Event command takes exactly one parameter, which is the Windows event that triggers execution of the controlled block. The following script illustrates this block:

## BeginSection: "Global Script Configuration" 
## EndSection: "Global Script Configuration"
## BeginSection: "Login Window"
Dialog
Class "#32770"
Title "Novell iFolder Login"
Ctrl #1
Ctrl #1092
Event WM_ACTIVATE
EndDialog
ReadText #1092 ?Message
If ?Message eq "Place a shortcut to the iFolder on the desktop"
If ?Failure eq 1
Set ?Failure <notset>
EndScript
Else
Setprompt "Username:"
Type $Username #1007
Setprompt "Password:"
Type $Password #1079
Setprompt "iFolder Server Name:"
Type $Optional #1001
Click #1
Setprompt "Enter your iFolder account information."
Endif
EndIf
## EndSection: "Login Window" Dialog
Parent
Title "Novell iFolder Login"
EndParent
Title "Novell iFolder"
Ctrl #2
EndDialog
Readtext #65535 ?ErrorMessage
If ?ErrorMessage eq "You must enter a server address."
Click #2
Set ?Failure 1
EndIf

Advanced Windows Scripting meets two requirements:

With AWS, SecureLogin can enable additional applications. Also, scripts no longer need to be Startup scripts so that all the applications launch. The applications can start at any time.

To use AWS, edit the application scripts by adding events. For a list of events and other information on AWS, see Event.