Scripting language (Overview)

Top  Previous  Next

The built-in scripting language provides an easy method to automate several tasks in WebSite-Watcher.

 

The scripting language is line oriented, that means you have to put each command into a single line. See also chapter Syntax overview.

Edit scripts

WebSite-Watcher comes with a built-in script editor that can be started in the "Script" menu.

 

To quickly open a script in the editor, simply hold the Shift key pressed while selecting a script from the "Script" menu.

Special scripts

Special scripts are executed automatically at at appropriate times, for example the "Autostart" script when WebSite-Watcher is launched. You can find and edit these special scripts in the menu "Edit special script". All other scripts must be started manually via the "Script" menu or the command line.

 

Autostart script
This script is executed when WebSite-Watcher is started.

 

Scripts for toolbar buttons
WebSite-Watcher can optionally display three toolbar buttons to execute special scripts. Additionally you can assign shortcuts to these scripts.

 

Scripts executed after each check run
WebSite-Watcher can optionally execute a script after each check run. Not all commands are allowed in those scripts, the script editor will give you a notification if you are using disallowed commands.

Commands

Commands to check bookmarks:

CheckFolder
CheckBookmarks

 

General commands:

AbortScript
BackupToZip
CloseBrowser
CloudSync
CreateReport
ImportBookmarks
MarkAsVisited
MessageBox
OpenBookmarkFile
OpenWithInternalBrowser
PlaySound and SystemBeep
QuestionBox
Quit
RestartScript
RunProgram
SelectFolder
SendBookmarks
SendMail
StartAutoWatch
WaitDelay / WaitUntilTime
WindowToTray

 

Variables and advanced commands:

Variables
Label and Goto
IF statement
Built-in functions

 

Global settings and flags:

Flags to disable defined bookmark properties

Examples

Check bookmarks
Simulate AutoWatch
Create and send a report
Advanced examples/code snippets



Translate document: