Console Object

ACP Scripting Console Object

Remarks

Intrinsic This object represents ACP's scripting console, which is located in the right half of the ACP main window. The Console may be used to display textual data, receive typed input from the user, solicit button presses from the user, and receive alert events from the user.

Virtual Console

If a script which uses the Console object is run via ACP's web server and web content, properties and methods exist which enable web content to mirror the console area on ACP's main window. This virtual console feature makes it possible for a single script to be used locally or on the web with no changes! The web content can display input areas for Console.AskYesNo() and Console.ReadLine(), allowing the web user to interact with the script in exactly the same manner as a local user of ACP would. Also, a script call to Console.Alert() can cause an alert to appear on the web browser.

ACP's standard web content, in the Utility Tasks item, contains a test for these features. Usage from a script is simple: just call the methods described here as though you were interacting locally, and ACP's web content will handle the virtual console for you!