SetConfigFile

Sets the path of config.txt file.

Declarations:

VC++

long SetConfigFile (_bstr_t pConfigFileName );

VISUAL BASIC:

SetConfigFile(ByVal pConfigFileName As String) As Long

Parameters:

Return Value:

Returns 1 if there is any kind of failure, or 0 if successful.

Notes:

The config.txt file has two parameter/values

  1. QuickStart=True : This tells SDK that the quick start option is turned on.  When the quick start option is turned on and when StopRecording function is called the Save Dialog box appears.  If the value of QuickStart=False then, when StopRecording function is called the Recording will be stopped but, the Save Dialog box will not appear.  SaveRecording function has to be called after StopRecording function, if QuickStart=False

  2. MacroFolder=C:\MyMacroFolder :  This tells SDK that when the Quick Start option is turned on and when the Save Dialog box appears all the macro files has to be saved in C:\MyMacroFolder.  If this folder is not created, the folder will be automatically created.    Also, when RunMacro function is called with the parameter “quickstart.cfg” as the file name, then an open dialog box appears.  All the macro files (*.wksp) located at C:\MyMacroFolder will be displayed in the open dialog box.  The path can be changed to any other location.