This section covers all the extended features added to the VB Scripting language for use by the Script Tool macro engine.
The script tool conforms to normal Visual Basic coding standards. The script tool enhancements are provided through a special object: ck. This object will already be defined and configured when your Script Tool macros are executed.
To implement any of the Sript Tools extended methods or properties, you must first prefix the relevant method or property with the ck object:
ck.
For example, to get the UserSeq property, you would use:
ck.UserSeq
To call the DoSendKeys method:
ck.DoSendKeys "KEYS"
All macros written for use by the Script Tool macro engine must contain this minimum amount of code:
Sub Main
End Sub
This creates the Main subroutine that is called to start the macro. You can also create additional subroutines or functions as needed by your script. Simply contain these subroutines or functions within the same script file.