Find keywords

Top  Previous  Next

The following example alerts an update if specific keywords are found within 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

 

Please read topic Wsw_CheckKeywords to see under which circumstances this event function is called or not called.