VBScript Events - CAPTUREit - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

CAPTUREit

Platform
AnyDoc
Product
CAPTUREit
Release
Foundation 23.1
License

VBScript is attached to specific events within CAPTUREit profiles. These events include:

Event Name

Description

Constant Code

VBScript attached to this event occurs during each and every CAPTUREit VBScript event. Attach profile wide VBScript to this event.

OnPreScan

VBScript is run when CAPTUREit is preparing to scan a new batch. The batch to be scanned has been assigned a batch ID but the batch directory does not exist yet. If an error occurs with the VBScript, the scan process is terminated.

OnPostScan

VBScript is run after CAPTUREit has completed scanning where the last page has been scanned but prior to the batch being processed. Patch page recognition has not yet occurred when the script runs.

OnBatchControl

This is a conditional event, which is dependent upon CAPTUREit settings. VBScript is run if the profile prompts the user for a batch control number. This script only runs if the following conditions are met:

  • <B_CTRL_NUMBER> is declared in one of the three document control fields in CAPTUREit or specified by the OCR for AnyDoc Form Family.

  • A format for the batch control number must be specified on the Capture Profile window | Output - ASCII tab.

  • A prompting control must be entered into the Batch Control Number Definition field. These are of the form <Prompt Text[]>. If a system-defined control value is specified, a prompt is not displayed.

If the VBScript does not call the DoModal method, CAPTUREit displays this window after the script is run. If the script displays the window, CAPTUREit does not display the window on its own. CAPTUREit uses the values stored in BatchControlDialog object and the PromptingControlDialog object, respectively. To prevent CAPTUREit from displaying this window, set the DisplayDialogFlag property or the PromptingControlDialog property to vbFalse.

OnPromptingControl

This is a conditional event, which is dependent upon CAPTUREit settings. VBScript is run if the profile prompts the user for a batch header record, image record or document set record. The VBScript is not run in the user is not prompted for this information.

If the VBScript does not call the DoModal method, CAPTUREit displays this window after the script is run. If the script displays the window, CAPTUREit does not display the window on its own. CAPTUREit uses the values stored in BatchControlDialog object and the PromptingControlDialog object, respectively. To prevent CAPTUREit from displaying this window, set the DisplayDialogFlag property or the PromptingControlDialog property to vbFalse.

OnPreImport

VBScript is run before the batch is imported into CAPTUREit.

OnPostImport

VBScript is run after all images have been imported into CAPTUREit.

OnBatchProcessed

VBScript is run after CAPTUREit has processed the incoming batch and before the Quality Assurance phase has begun.

OnQABarcodeIndexPrompt

This is a conditional event, which is dependent upon CAPTUREit Barcode Recognition settings or can be manually run by the QA Operator. VBScript is run if the profile prompts the QA Operator to add or edit Barcode Recognition ASCII Output values.

This event can be used to modify a barcode label, set the barcode label to required, or apply Edit Masks and Regular expressions.

If the VBScript does not call the DoModal method, CAPTUREit displays this window after the script is run. If the script displays the window, CAPTUREit does not display the window on its own.

OnPostQualityAssure

VBScript is run after CAPTUREit has completed the Quality Assurance phase.