Alert When Specific Keywords Are Found
The following example triggers a notification if specific keywords are found in new or changed content.
Sub Wsw_CheckKeywords($sMemChanges, ByRef $sStatusMessage, ByRef $iKeywordFound)
Dim $s = $sMemChanges
' Look for WebSite Watcher but exclude weight watcher
If KeywordExists($s, "website", True) And KeywordExists($s, "watcher", True) And Not (KeywordExists($s, "weight", True)) Then
$iKeywordFound = 1
Return
End If
If KeywordExists($s, "aigne", True) And KeywordExists($s, "watcher", True) Then
$iKeywordFound = 1
$sStatusMessage = "Keyword 'aignes + watcher' found"
Return
End If
End Sub
For details about when this Event function is called or not called, see the topic Wsw_CheckKeywords.