The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
PHP
This PHP examples shows how to start iMacros from a PHP script from Apache or IIS running on a Windows Server.
The script can be started remotely via a URL in the form http://your-address.com/?macro=yourmacro&keyword=yourkeyword It displays the results on the website after the iMacros run (iimPlay) is completed. This method can be used to call iMacros remotely from another machine, for example a monitoring server running under Linux.
<?php $fso = new COM('Scripting.FileSystemObject'); $fso = NULL; $iim1 = new COM("imacros"); $s = $iim1->iimInit("-runner"); $s = $iim1->iimSet("-var_keyword", $_GET["keyword"]); $s = $iim1->iimPlay($_GET["macro"]); echo "iimplay="; echo $s; echo "extract="; echo $iim1->iimGetLastExtract; $s = $iim1->iimExit(); ?>
Note: You can use the iimGetLastExtract command to return complete performance monitoring data and display it. Please see this response time measurement VBS macro for details.