Event functions

Top  Previous  Next

The Basic script of a Plugin must contain one or more Event functions which are called from WebSite-Watcher at appropriate times. All Event functions start with "Wsw_"

 

Wsw_SelectPlugin

This function is called when a user selects a Plugin. This function can test if all conditions are met (for example the existence of an external converter) and cancel the selection if required.

 

Wsw_BeforeCheck

This function is called before a bookmark check is started. You can use this function to change some bookmark properties before the check is started.

 

Wsw_MergePages

This function is called during a bookmark check and offers a way to merge different pages to a single page.

 

Wsw_PreProcessPage

This function is called immediately after a page has been downloaded and before any other processing starts. This function can be used to modify the page source or even to convert it into another format.

 

Wsw_CompareVersions

This function is called to compare the web version of a page with the locally saved version. You can filter the content and decide when a bookmark should alert an update, for example when a specific price in the web version is lower than in the locally saved version.

 

Wsw_CheckKeywords

This function is called when WebSite-Watcher looks for keywords. It can be used for advanced keyword processing with logical operators.

 

Wsw_ActionsOnUpdate

This function is called to perform actions after an update, initialization or an error.

 

Wsw_AfterCheck

This function is called after a bookmark has been checked.




Translate document: