事件控制脚本

Event Control Scripts are among the most advanced features in BarTender and should be used only by technically knowledgeable individuals.

根据脚本的用途,有的脚本可能偶尔才执行,一个打印作业只执行一次,有的则需要频繁执行,每一个打印项目就要执行一次。 这分别是打印作业中发生的最不频繁和最频繁的“事件”。 不过,在这二者之间,还存在多种事件,其发生频率要高于整个作业一次,低于每一个项目一次。

为尽量简化起见,BarTender 通常会检查单行表达式和多行脚本,试着确定脚本的理想执行频率。 对于大多数用户和用途而言,这已足够。 不过,有时您可能需要更精确地控制并需要明确指出脚本的执行时间。

事件类型

尽管您总是要这么做的可能性很小,但对于 BarTender 支持的每种事件类型,模板中每个数据源仍有可能各有一个脚本。 It is more realistic that, if you do need to write an event script, you will need to do so only for one particular event type and probably just for one or a few data sources.

BarTender 支持使用以下“事件控制”脚本:

选择要为之编写脚本的事件

脚本”窗格中每行的项都对应一个单独的脚本。 如果要为某个事件编写脚本,只须在“脚本”窗格中单击该项。

现在,您可以将所需的任意行 VBScript 插入“脚本”窗格中。 (Don’t forget that to assign a value to a data source, a line of script beginning with "Value =" needs to appear somewhere in the script.) You can click on as many different items in the Script pane as you want and define a script for each one.

相关主题