Re-using scripts

<< Click to Display Table of Contents >>

Navigation:  Using the program > Scripts >

Re-using scripts

If you want to re-use one script in multiple block you may do the following:

 

1. Add the full script in a block.

2. Add the following command on the top line in another block:

 

imports "@BlockName::ScriptName"

 

This commands searches a block by the "BlockName" caption and reuses the "ScriptName" script.

 

Also you may load scripts from a file.

 

imports "ScriptName.vb"

 

This commands loads a script from the "ScriptName.vb" file in the program folder.

 

imports "c:\ScriptName.vb"

 

This commands loads a script from the specified path.

 

Note: the program does not monitor script files. Therefore you need to restart the program if you made changes in your external script file.