An other method to control the application from other software is the use of Dynamic Data Exchange (DDE).
The application expoes itself as a DDE server, controllable with Windows API, able to accpt and execute commands.
To create a DDE conversation a client need to use the server name and topic and of course the list and parameters of recognized commands.
The server name to use is the executable name without extension so, unless you have renamed the executable, is "RECODESK".
The topic to use is the default standard "SYSTEM".
The recognized commands are:
[Open("file_to_open.rfd")]
Open and rfd file
[Add("image_file_to_add.tif")]
Add an image file to the batch list
[Scan]
Start the scanning
[Recognize(file_index_to_recognize)]
Start the recognition of a single image, with the specified index. The first file has index 0.
[Recognize]
Start the recognition of the full batch
[Del(file_index_to_delete)]
Delete the file with specified index. The first file has index 0.
[Del]
Delete all the files from batch list.
[Exit]
Close the application
Example of DDE usage from VisualBasic:
Dim Chan As Integer
' Open a comminication channel
Chan = DDEInitiate("RecoDesk", "System")
' Load an rfd file
DDEExecute Chan, "[Open('C:\DEMO\TEST.RFD')]"
' Add some images to the batch
DDEExecute Chan, "[Add('C:\DEMO\00000000.TIF')]"
DDEExecute Chan, "[Add('C:\DEMO\00000001.TIF')]"
DDEExecute Chan, "[Add('C:\DEMO\00000002.TIF')]"
DDEExecute Chan, "[Add('C:\DEMO\00000003.TIF')]"
DDEExecute Chan, "[Add('C:\DEMO\00000004.TIF')]"
' Start the batch processing
DDEExecute Chan, "[Recognize]"
' Close the communication channel
DDETerminate Chan