Doc-To-Help scripts are code modules written in the VBScript language that you can use to modify the behavior of paragraph and character styles during compilation. If you are familiar with event-driven languages such as Visual Basic, you can think of a script as an "event handler" for a style. Just as the Click event is fired when the user clicks a button in a Visual Basic application, a script is executed whenever Doc-To-Help encounters a topic or a hot spot defined by a scripted style.

Scripts can be added by simply clicking in the right hand script list pane. Script editing can be performed in the code text editor located to the right of the Code property.

For more information, see Scripting Techniques.