One of methods to control application from other software is to start it passing some parameters on command line.
You can make this operation from Windows shell, creating a link to the executable and inserting manually on command line the parameters to use, or from other application or custom scripts, using Windows API ShellExecute or WinExec.
The accepted parameters are:
·
an application definition file (.rfd)
·
one or more image files (.tif)
·
one or more text files with images list (.txt)
·
the "-auto" option
Inserting on command line the definition application file (.rfd), this file will be opened automatically and it will be the current application, like when an operator use the Open command from File menu to open it.
Inserting on command line one or more image files (.tif) they will be automatically inserted in batch files list, like when an operator use the Add from File command from Images menu to add it.
Inserting on command line one or more text files with lists of images (.txt) the images listed will be automatically added to to batch files list, like when an operator use the Add from File command from Images menu to add it.
Inserting on command line as last parameter the option "-auto", if are present also the deifnition file and one or more image files or text files with lists of image, the process will start automatically and when terminated the software will be closes, like when an operator uses the Process All command from Images menu and at process end uses the Exit command from File menu.
RECODESK.EXE C:\DEMO\TEST.RFD C:\DEMO\LIST.TXT -AUTO
The first one load the application definition file automatically; the second one load the file and the insert in batch list two image files, startin automatically the processsing; the last one is similar to prior, but instead to load two image file it load a text file with an image list.