To summarize some of the tbone's points, when using the WSH scripting (JScript or VBScript) in Opus, broadly speaking the following categories of functionality become available to you:
- JScript (or VBScript) core language functionality such as variables, loops etc. (see the tbone's explainer mentioning ES5) which enable more complex scripting than using just the standard internal Opus commands.
- Opus-specific functionality (via Opus-provided scripting API), such as
DOpus.Output("Hello!")
- Windows system-wide functionality (via ActiveScripting), such as ability to mute/unmute audio, eject the CD drive tray etc. -- nicely integrated in Opus (e.g., trigger on button click).