Built-in Functions Reference
WebSite-Watcher provides many built-in functions, especially string functions, that can be called from within Basic Scripts.
In the following declarations and examples, string variables typically start with "s", and integer variables typically start with "i" or "n".
Find strings
- InStr
- InStrRev
- FindString
- FindWildcard
- GetFirstWildcardMatch
- GetAllWildcardMatches
- DeleteAllWildcardMatches
- FindRegex
- GetFirstRegexMatch
- GetAllRegexMatches
- KeywordExists
String extraction
String functions for HTML processing
- FindHtmlTag
- DeleteHtmlTags
- OptimizeHtml
- HtmlGetParam
- HtmlExtract
- DownloadPageToString
- DecodeHtmlChars
- HtmlExtractPageTitle
- HtmlChangePageTitle
- HtmlTagsBegin
- HtmlTagsEnd
String manipulation/conversion
- LCase
- UCase
- Trim
- LTrim
- RTrim
- Len
- Replace
- ReplaceWildcard
- ReplaceRegex
- Insert
- Chr
- Asc
- IntToHex
- DeleteDoubleBlanks
- Crc32
- GetUniqueID
- SortStringLines
String Lists
- StringList_AddItem
- StringList_InsertItem
- StringList_ChangeItem
- StringList_DeleteItem
- StringList_GetItem
- StringList_GetItemIndex
- StringList_ItemCount
- StringList_Sort
- StringList_RemoveDuplicates
- StringList_RemoveEmptyItems
- StringList_LoadFromFile
- StringList_SaveToFile
File related functions
- AddToDownloadManager
- FileExists
- FileToString
- StringToFile
- AddStringToFile
- DeleteFile
- MakeUniqueFilename
- ExtractFileName
- ExtractFileExt
- ExtractFilePath
- ChangeFileExt
- AddBackslash
- AddSlash
Program execution
String/Number/Date conversion
Number related functions
Date/Time related functions
- Now
- FormatDateTime
- EncodeDateTime
- DateDiff
- DayOfWeek
- IncYear
- IncMonth
- IncDay
- IncHour
- IncMinute
- IncSecond
- IsLeapYear
Array related functions
Mixed functions
User interaction
Bookmark functions
- Bookmark_GetProperty
- Bookmark_SetProperty
- Bookmark_ApplyFilter
- Bookmark_AddLog
- Bookmark_LoadCacheFile
- Bookmark_SaveWebPageAsRaw