Adobe CAPTIVATE 5 Help Manual page 159

Table of Contents

Advertisement

Last updated 4/22/2010
Move to the next slide if the information is correct.
Stay at the login slide if the information is incorrect and display a text caption requesting the user to reenter the
login information.
1
Select Project > Actions.
In the script window, create a script named validate with the following code:
2
Check If [varUserName is equal to user] AND [varPassword is equal to password]
begin
Continue
end
OrElse
begin
Jump to slide Slide1
Show FailureCaption
end
Now look at individual lines of the code to understand what they do.
Check If [varUserName is equal to user] AND [varPassword is equal to password]
The code checks whether the user has used the user and password login credentials in the respective fields.
Continue
This project moves to the next slide if the user name and password are entered correctly.
Or Else
Begin
Jump to slide Slide1
Show FailureCaption
If the user information is incorrect, the project stays at the login slide. The text caption with the name FailureCaption
is displayed.
Create an advanced action for the e-mail and welcome slide
In the script window, create a script named sequential action with the following code:
Send e-mail to test@xyz.com in current window and continue playback
Show WelcomeCaption
Now look at individual lines of the code to understand what they do.
Send e-mail to test@xyz.com in current window and continue playback
On successful login, the code opens up the default e-mail editor with the e-mail ID test@xyz.com displayed in the To
field.
Show WelcomeCaption
Displays the text caption containing the text, "Welcome <login name>".
Apply the advanced action to the login slide
Double-click the login slide, and set the following actions in the Property Inspector:
On Enter: Select Continue.
On Exit: Select Execute Advanced Actions, and in the Action menu, select Validate.
DRAFT
USING ADOBE CAPTIVATE 5
Variables and Advanced Actions
152

Advertisement

Table of Contents
loading

Table of Contents