Scripts interact with SecureCRT by invoking properties and methods on SecureCRT's "top-level" or Application object or by invoking the properties and methods on "sub-objects" available through SecureCRT's application object. SecureCRT's application object is accessed in scripts with the name ‘crt’. Properties and methods on SecureCRT's sub-objects may be accessed by creating a reference to a sub-object, or through the use of VBScript’s multiple dot syntax. For example:
Dim dlg
Set dlg = crt.Dialog
dlg.Prompt("Login:")
In Python, the lines would look like:
dlg = crt.Dialog
dlg.Prompt("Login:")
Or, in VBScript and Python, without creating the reference:
crt.Dialog.Prompt("Login:")
For a complete reference to all SecureCRT script objects, see the "Script Objects Reference" section in this book.