Commands & Syntax > Commands > Run/Execute >

www.perfectkeyboard.com

 

EXTERNAL SCRIPT FILE - < script_file >() ... [Pro]

 

Run EXTERNAL SCRIPT FILE
<script_file>("File",Wait until finished)
Available in: Professional edition

Executes a script from external file.

 

#

Parameter name

Parameter description

1

File

Script file to run. There are these file types supported:
.bss - Basic Script file
.bsx - encoded Basic Script file
.vbs - VB Script file
.js - Java Script file

The file should be either full path (e.g., "c:\myscripts\script1.bss") or just file name (e.g., "script.bss"). Partial or relative paths (e.g., "..\scripts\script.bss") are not supported at this time. All the scripts that you call using just the name (e.g., "script.bss") must be saved in the "scripts" directory. In the "Basic Script" scripts, it is possible to use '#Uses "some-file" directives that allows to use symbols defined in other modules. In the "uses" directives, both BSS and BSX files can be used (they also have to be in "scripts" directory or full path must be supplied).

2

Wait until finished

If equal to 1, the macro waits until script execution is finished. If equal to 0, the macro continues execution without waiting for script to finish.

 

Example (Macro Steps):

 

1

<#> <#> This macro runs selected script

2

Macro execution: ONLY COMMANDS

3

Variable OPERATION "SELECT_FILE" (Variable for result = vScript, Input text/variable = *.bss, Parameter 1 = Select Script To Run, Parameter 2 = , Parameter 3 = 0)

4

IF STRING _vCanceled==1

5

Macro EXIT

6

ENDIF

7

Run EXTERNAL SCRIPT FILE "vScript", Wait until finished="No"

Example (Plain Text):

 

<#> This macro runs selected script

<#>

<cmds>

<var_oper>(vScript,"*.bss",SELECT_FILE,"Select Script To Run","", "0")

<if_str>("_vCanceled==1") <exitmacro> <endif>

 

<script_file>("vScript",0)