Using the context object with actions
- Last Updated: September 11, 2023
- 1 minute read
- WhatsUp Gold
- Version 2024
The context object provides an interface for your script to interact with WhatsUp Gold.
All methods and properties are retrieved using the Context namespace.
Method | Method description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
This methods allows for a message to be written to the WhatsUp Gold debug log. Messages are displayed in the Event Viewer. Example JScript
VBScript
|
||||||||||||||
|
|
This method allows for a result code and result message to be set. This is how you can tell the WhatsUp Gold system if the action succeeded or failed. Example JScript
VBScript
|
||||||||||||||
|
|
This method allows for a message to be written to the actions progress dialog. Messages are displayed in the Test dialog and Running Actions dialog. Example JScript
VBScript
|
||||||||||||||
|
|
This method tests whether the action has been canceled by the user. If the return is true, then the script should terminate. A cancel can be issued by the user in the action progress dialog and by the WhatsUp Gold engine when shutting down. |
||||||||||||||
|
|
This property offers access to many device specific aspects. You obtain access to these items using the names listed. Theses names are case sensitive.
Example JScript
|