List of application commands available to script.

These commands can be used with IsCommandPermitted and ExecuteCommand. These commands are also available to third-party controls via IApplication.RequestCommand.

CommandDescription
Editor Mode
EnterRunModeSwitches to Run Mode.
ExitRunModeSwitches to Design Mode (subject to user permissions and application InitParams).
ToggleKioskViewToggles Kiosk View on or off. To force Kiosk View on or off, pass true or false as the optional command argument.
SecurityLogoutLogs the user out and restarts the application.
ExitLogs the user out, exits the application, and closes the browser.
Pages
OpenPageOpens the specified page.
OpenDefaultPageOpens the default page (if specified as one of the application InitParams).
Zoom
ZoomBestFitSets the zoom to best fit the browser window and available space. Zoom is available in Design Mode and Run Mode, but not in Kiosk View.
ZoomInZooms in one level (i.e., objects become larger). Application zoom levels are shown on the Zoom toolbar. Zoom is available in Design Mode and Run Mode, but not in Kiosk View.
ZoomOutZooms out one level (i.e. objects become smaller). Application zoom levels are shown on the Zoom toolbar. Zoom is available in Design Mode and Run Mode, but not in Kiosk View.
Zoom100Zooms to 100%. (i.e., the page width and height are used as 'natural' dimensions). Zoom is available in Design Mode and Run Mode, but not in Kiosk View.
ZoomPercentZooms the page to the specified percentage, which typically needs to be between 10% and 800%. Zoom is available in Design Mode and Run Mode, but not in Kiosk View.
Browser
NavigateToUrlOpens a new browser window and navigates to the specified url.
RunJavascriptRuns javascript in the hosting browser context.
Options
ChangeLanguageChanges the user interface language. To be supported in a future release.
Diagnostics
ToggleScriptDebugWindowToggles the visibility of the Script Debug Window. This command is available in Design Mode and Run Mode, but not in Kiosk View.

See ExecuteCommand for a usage example.