http://wiki.imacros.net/JavaScript
Code: Select all
<html>
<body>
<script type="text/javascript">
<!--
function runimacros() {
var iim1 = new ActiveXObject("imacros");
var iret
iret = iim1.iimInit("-fx");
iret = iim1.iimDisplay("This is a test");
iret = iim1.iimPlay ("JS_TEST");
iret = iim1.iimExit();
}
//-->
</script>
<a href="javascript:runimacros()">Click to run iMacros</font></a>
</body>
</html>
1. clicking on the iopus_code.html file it runs in IE11. After taking care of the Action Script popups I 'click to run imacros' and get nothing
2. rt clk iopus_code.html to run in iMacros, and only see the default opening page
3. running the iim from iMacros browser sidebar generates the correct PROMPT dialogue over the opening page (as I expected)
4. substituting the full path for the iim in the html makes no change
I am stumped. This is my first attempt to use javascript with iMacros. I have had good success with Imacros on its own.
Any suggestion/fix really appreciated!
The iim:
Code: Select all
VERSION BUILD=9002379 RECORDER=FX
TAB T=1
TAB CLOSEALLOTHERS
SET !ERRORIGNORE NO
SET !EXTRACT_TEST_POPUP NO
'FILTER TYPE=IMAGES STATUS=ON
' CLEAR page load takes longer than 15 seconds
SET !TIMEOUT_PAGE 15
CLEAR
SET !EXTRACT NULL
SET testCANADA Canada
PROMPT Does<SP>this<SP>{{testCANADA}}<SP>===<SP>Canada?
Config:
Windows 7 N 32bit Ultimate SP1 (&& all updates installed as of last week)
default browser : IE 11.0.7 (&& all updates installed as of last week)
iMacros browser : 9.00.2379