Adobe 65030089 - Robohelp - PC Using Manual page 415

User manual
Hide thumbs Also See for 65030089 - Robohelp - PC:
Table of Contents

Advertisement

USING ROBOHELP HTML 10
Advanced program features
Note: Add support files used in scripts (such as image files) to the Baggage Files folder to include in the project.
Add a script to an HTML topic
In the Design Editor, click the place in the topic to add the script.
1
Select Insert > HTML > Advanced > Script.
2
3
In the Source tab, enter the scripting code.
• If you first copy the script to the Clipboard, you can click inside the Source tab and paste the data into the box.
You can also type the script directly into the box.
• Enclose the script within comment tags <!-- and --> for compatibility with all browsers.
Select the Tag tab, select a Name or Value tag to edit, and select Edit Name or Edit Value.
4
5
Change the tag, as needed, and click OK. The value can be VBScript or JavaScript.
The icon
indicates where the script is inserted in the topic. To edit the script, double-click the icon.
6
Test the HTML file after you generate output.
Event support in scripting
Use events in scripts to invoke functions at specific trigger points defined in RoboHelp.
Predefined events
The following events are predefined in RoboHelp:
Event
Description
SaveAll
Sends notification when File > Save All is
executed
OpenTopic
Sends notification when a file is opened in
the editor
CloseTopic
Sends notification when a file is closed in
the editor
PreSSLGenerate
Sends notification before an SSL is
generated
PostSSLGenerate Sends notification after an SSL is generated Name of the layout
PreImport
Sends notification before a file is imported
PostImport
Sends notification after a file is imported
Note: Event names are not case-sensitive.
Register a function for an event
You can register a function defined in a script for an event from the Script Explorer pod or by modifying the script.
When multiple functions are registered for the same event, RoboHelp runs the functions in the order in which they
have been registered.
You can break the chain of execution of functions registered for the same event by changing the return value of a
function to false.
Argument
None
Full path of the file
Full path of the topic
Name of the layout
Full path of the file being imported
Full path of the imported file
Last updated 7/13/2012
409

Advertisement

Table of Contents
loading

This manual is also suitable for:

Robohelp html 10

Table of Contents