macro += "VERSION BUILD=9002379" + "\n";
macro += "TAB T=1" + "\n";
macro += "TAB CLOSEALLOTHERS" + "\n";
macro += "SET !DATASOURCE C:\\imacros\\demo.csv" + "\n";
macro += "" + "\n";
macro += "SET !DATASOURCE_COLUMNS 3" + "\n";
macro += "SET !DATASOURCE_LINE {{i}}" + "\n";
macro += "URL GOTO={{!COL2}}" + "\n";
macro += "WAIT SECONDS=1" + "\n";
macro += "ADD !EXTRACT {{!COL1}}" + "\n";
macro += "" + "\n";
macro += "TAG POS=1 TYPE=DIV ATTR=CLASS:deguy EXTRACT=TXT" + "\n";
macro += "TAG POS=1 TYPE=DIV ATTR=ID:idvenga EXTRACT=TXT" + "\n";
macro += "SAVEAS TYPE=EXTRACT FOLDER=C:\\imacros FILE=results.csv" + "\n";
for (var i=1;i<10;i++)
{
iimSet("i",i)
iimPlay(macro)
}
但回调根本没有触发,而是插入数据库