imacros - 如何获取外部文件php的内容

I am new in iMacros and I really need your help. esotu writing a iMacros script and did not want to leave the code accessible to any user changes and maintenance work gives me later.

I need to get all my imacro code from an external php file of my website .

the idea is that the macro has only the url where the php file, and the contents of this file to run when the macro is run .

so far I have this code here, and I can not do imacro read the contents of the php file:

VERSION BUILD=8530828 RECORDER=FX


SET !ERRORIGNORE YES

SET !TIMEOUT_TAG 1

SET !TIMEOUT_STEP 1

SET !TIMEOUT_PAGE 30

SET !REPLAYSPEED FAST

SET !DATASOURCE http://www. site .com/todocodigoaqui.php

SET !DATASOURCE_COLUMNS 1

SET !LOOP 1

SET !DATASOURCE_LINE {{!LOOP}}

SET !TODOCODIGOAQUI URL GOTO={{!COL1}}

thanks

TAB T=1  
TAB CLOSEALLOTHERS 

The variant for Firefox 'iMacros':

const L = "
";
var M = "TAB T=1" + L;
M += "TAB OPEN" + L;
M += "TAB T=2" + L;
M += "URL GOTO=http://www. site .com/todocodigoaqui.php" + L;
M += "TAG POS=1 TYPE=HTML ATTR=* EXTRACT=TXT" + L;
M += "TAB CLOSE" + L;
iimPlayCode(M);
iimPlayCode(iimGetExtract());

You can get the contents of your php-file in this way:

' ...
TAB OPEN
TAB T=2
URL GOTO=http://www. site .com/todocodigoaqui.php
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=HTML ATTR=* EXTRACT=TXT
TAB CLOSE
'PROMPT {{!EXTRACT}}
'...

If you use JavaScript Scripting Interface for Firefox, run the extracted macro with iimPlayCode(iimGetExtract()) .