Newbie Functions and Procedures

Function CheckRadioValue(ControlName, sValue: string): boolean;
Function CheckRadioValueInFrame(ControlName, sValue: string): boolean;
Function ClickButtonUsingCaption(sCaption : string): boolean;
Function ClickCheckBox(sButtonName : string; sValue: string): boolean;
Function ClickCheckBoxID(sID: string): boolean;
Function ClickCheckBoxMultiItems(sButtonName : string; sValues: string): boolean;
Function ClickHotSpot(MapName, AltText: string): Boolean;
Function ClickHyperHref(sHref : string): boolean;
Function ClickHyperLink(sKeyword : string): boolean;
Function ClickHyperLinkInFrame(sLink : string): boolean;
Function ClickMultiHyperLink(sKeyword : string): boolean;
Function ClickPartialHyperLink(sKeyword : string): boolean;
Function DeleteIECookies: boolean;
Function DoubleQuote(str: string): string;
Function ExecuteActiveScript(const Filename: string): Boolean;
Function ExecuteInlineVBScript : Boolean;
Function ExecuteInlineJScript : Boolean;
Function ExecuteWebScript(sScript, sLanguage : string): boolean;
Function ExtractSubStr(sSrcStr, sStartStr, sEndStr : string): string;
Function ExtractURLParam(sField: string): string;
Function Fill(FieldName : string; Value : string): Boolean;
Function FillFieldInFrame(FieldName : string; Value : string): Boolean;
Function FillLogin(FieldName : string; sValue : string): Boolean;
Function FillTextArea(FieldName : string; Value : string): Boolean;
Function GetActiveBrowserWindow: boolean;
Function GetActiveWindow(sTitle: string): boolean;
Function GetArrayParam(nIndex: integer) : string;
Function GetElementAttribute(sTag: string; sName: string; sAttribute: string): string;
Function GetExecuteBrowser: string;
Function GetHREF(sStr : string): string;
Function GetHTMLBody: string;
Function GetParam(ParamName : string) : string;  
Function GetSelectedFunction() : string;
Function GetTableAttribute(TablePos : integer; sAttribute: string): string;
Function GetTableCell(TablePos, RowPos, CellPos : integer): string;
Function GetTableCellImages(TablePos, RowPos, CellPos : integer; sPath: string): boolean;
Function GetTableCellURLS(TablePos, RowPos, CellPos : integer): string;
Function GetTableRowAttribute(TablePos, RowPos : integer; sAttribute: string): string;
Function GetTopicURLS(sSearchStr: string): string;
Function GetWebPageTitle: string;
Function GetWindowsUserName: string;
Function HyperLinkExists(sLink) : string;
Function HyperLinkExistsInFrame(sLink : string): boolean; 
Function InlineGetStr : string;
Function IsExecuteScriptIE : boolean;
Function IsPartOf(SubStr, Str : string): boolean;
Function MouseClickXY(X, Y: integer): boolean; 
Function Readln(InStr: string): string;
Function ScreenCaptureToClipboard(sCaptureType: string): boolean;
Function ScreenCaptureToFile(sFullPath: string; sCaptureType: string): boolean;
Function ScreenCaptureXY(sFullPath: string; X1, Y1, X2, Y2: integer): boolean;
Function SelectFile(const sCaption: string; sInitialDir: string): string;
Function SelectListIndex(ControlName: string; nValue: integer): boolean;
Function SelectListIndexInFrame(ControlName: string; nValue: integer): boolean;
Function SelectListItem(ControlName, sValue: string): boolean;
Function SelectListItemInFrame(ControlName, sValue: string): boolean;
Function SelectListMultiItems(ControlName, sValues: string): boolean;
Function SendKeyPress(sKey : string): boolean;
Function SendKeyPressToWindow(WndTitle, sKey : string; nDelay: integer): boolean;
Function SendString(str : string): boolean;
Function SendStringToWindow(WndTitle, str : string; nDelay: integer): boolean;
Function SetCheckBox(sButtonName : string; sValue: string; bValue: boolean): boolean;
Function SetElementAttribute(sTag, sName, sAttribute: string; vValue: Variant): boolean;
Function SetExecuteBrowser(sBrowser: string) : boolean;
Function StringReplace(sStr, sOldPattern, sNewPattern : string; bReplace, bIgnoreCase: boolean): string;
Function SubmitForm(FormName: string): boolean;
Function TextAppendToFile(sFileName: string; sText: string): boolean;
Function TextSaveToFile(sFileName: string; sText: string): boolean;
Function WaitClickButton(sButtonName : string; nDelay: integer): boolean;
Function WaitForElement(sTag, sAttribute, sValue: string; nTimeout: integer): boolean;
Function WaitForWindowKeyPress(sWindowTitle: string; sKey: string; nDelay: integer) : boolean;
Function WaitForWindowMouseClickXY(sWindowTitle: string; nTimeout, X, Y: integer) : boolean;
Function WaitForWindowSendString(sWindowTitle: string; sStr: string; nDelay: integer) : boolean;
Function WaitForWindowToClose(sWindowTitle: string; nMilliSecs: integer): boolean;
Function WaitNewbieScriptEnd(nDelay: integer): boolean;
Function WaitSelectListItem(ControlName, sValue: string; nDelay: integer): boolean;
Function WaitSendKeyPress(sKey: string; nDelay: integer; nTimes: integer): boolean;
Function WaitSendString(sStr: string; nDelay: integer; nTimes: integer): boolean;
Function WinExec(sPath: string) : Boolean;

Procedure ClickButton(sName: string);
Procedure ClickButtonInFrame(sButtonName : string);
Procedure ClickButtonValue(sValue : string);
Procedure ClickImageButton(sName : string);
Procedure CopyTextToClipBoard(sText: string);
Procedure DeleteIECache;
Procedure DeleteFile(sFilename : string);
Procedure ExtractHyperLinks(sOutFile, sKeyword, sMarker: string); 
Procedure GetHyperLinkFile(FileName, sHyperLink : string);
Procedure GetURLFile(FileName, sURL : string);
Procedure GoHome; 
Procedure GoToURL(URL: string);
Procedure InlineClear;
Procedure InlineAdd(sLine: string);
Procedure InsertDomainToURLS(sDomain: string; var sText: string);
Procedure Navigate(URL : string);
Procedure NewbieFunction(sDes, sFunc : string);
Procedure NewbieScriptEnd;
Procedure OpenInternetExplorer(sURL : string);
Procedure PrintWebPage(sPrintOption, sPrompt: string);
Procedure SaveWebPageAs(sType: string; sFilename: string);
Procedure SetParam(ParamName, ParamValue : string);
Procedure SetTimer(bEnabled: boolean; nInterval: integer);
Procedure ShowMessage(Msg : string);
Procedure Sleep(nMiliSeconds: integer);
Procedure StatusBarMsg(sMsg: string);
Procedure Writeln(Str: string);
Procedure WriteToLog(sLogFile, sDateTime, Str: string);
 

Newbie Database Functions

Function AppendDBTable: boolean;
Function OpenADOTable(sConnectStr : string; sTableName: string): boolean;
Function
OpenDBTable(sDataSourceName : string; sTableName: string): boolean;

Function CloseDBTable: boolean;
Function DBGetField(sFieldName: string): Variant;
Function DBGetFloatField(sFieldName: string): double;
Function DBGetIntField(sFieldName: string): Integer;
Function DBGetStrField(sFieldName: string): String;
Function DBSetField(sFieldName: string; vData: Variant): boolean;
Function DBTableFindRec(sFieldName: string; vData: Variant): boolean;
Function EditDBTable: boolean;
Function EndOfDBTable: boolean;
Function ExecDBQuery(sConnectStr : string; sSQLStr: string): boolean;

Function DBTableNext: boolean;

Function DBTablePrior: boolean;

Function DBTableFirst: boolean;

Function DBTableLast: boolean;

Function PostDBTable: boolean;

String Matrix Functions

Function MatrixGetVal(nRow, nCol: integer): string;
Function MatrixMaxCol: integer;
Function MatrixMaxRow: integer;
Function MatrixReadFile(sFile: string): boolean;
Function MatrixResize(nRows, nCols : integer): boolean;
Function MatrixSaveToFile(sFile: string; bOverwrite: boolean): boolean;
Function MatrixSetVal(nRow, nCol: integer; sValue : string): boolean;
Procedure MatrixLineDelimiter(sDelimiter: string);
Procedure MatrixReset;

 

* Bold Functions/Procedures are new
* Refer to Online Help for function details.