|
Version 5 contains the completely rewritten Scripting Interface. The new Interface is much faster, thread-safe and more reliable.
We worked hard to keep compatibility between Version 4 and Version 5: All the scripts you created with the older Version 4 Interface will also work with the new interface - just faster!
Only a few minor changes might be required to update your scripts for use with V5.0:
1. If you use iimGetLastMessage: This command has been replaced iimGetLastExtract (to get the extracted text) and iimGetLastError (to get error information). This new approach allows you to access the extracted data even if the macro itself encountered an error.
2. If you check on the return value of iimPlay: The return value of iimPlay is now always "1" in case of success. Previosly it could be 1 or 2, depending whether or not there was extracted data.
You can now use iimGetLastExtract to check for extracted data:
s = iim1.iimGetLastExtract
if s <> "" then msgbox "There is extracted data"
or use
if instr (s, "[EXTRACT]") > 0 then msgbox "There is extracted data"
3. If you use iimExitAllBrowsers: This command is no longer required and can be removed.
More details can be found in the online user manual. If you have a question or comment, please join the discussions on our online user forum.
|