Event functions

A Plugin Script must contain one or more Event functions that are called by WebSite-Watcher at appropriate times. All Event functions start with "Wsw_".


  • Wsw_SelectPlugin
    This function is called when a user selects a Plugin. It can verify that all required conditions are met, for example the availability of an external converter, and cancel the selection if necessary.

  • Wsw_BeforeCheck
    This function is called before a bookmark check starts. You can use it to modify bookmark properties before the check begins.

  • Wsw_MergePages
    This function is called during a bookmark check and allows you to merge multiple pages into a single page.

  • Wsw_PreProcessPage
    This function is called immediately after a page is downloaded and before any other processing begins. You can use it to modify the page source or convert it to another format.

  • Wsw_CompareVersions
    This function is called to compare the online version of a page with the locally saved version. You can compare the page content, or selected parts of it, and determine whether a bookmark should report an update, for example if a specific price in the online version is lower than in the locally saved version.

  • Wsw_CheckKeywords
    This function is called when WebSite-Watcher searches for keywords. It can be used to perform advanced keyword searches with additional logic.

  • Wsw_ActionsOnUpdate
    This function is called to perform actions after a detected update, after initialization, or after an error.

  • Wsw_AfterCheck
    This function is called after a bookmark check has been completed.