iimPlay(part2); // at this point the proxy connection is established
iimPlay("C:\Users\Libertad\Documents\iMacros\Macros\test.iim");
var macro = "CODE:";
macro += "VERSION BUILD=8940826 RECORDER=FX" + "\n";
macro += "SET !ERRORIGNORE YES" + "\n";
macro += "TAB T=1" + "\n";
macro += "CLEAR" + "\n";
macro += "SET !FILESTOPWATCH mydata.csv" + "\n";
macro += "STOPWATCH ID=total" + "\n";
macro += "SET !DATASOURCE C:\\proxies.csv" + "\n";
macro += "SET !DATASOURCE_COLUMNS 1" + "\n";
macro += "SET !LOOP 1" + "\n";
macro += "SET !VAR9 {{rnd}}" + "\n";
macro += "SET !DATASOURCE_LINE {{!VAR9}}" + "\n";
macro += "SET !TIMEOUT 30" + "\n";
macro += "PROXY ADDRESS={{!COL1}}" + "\n";
macro += "URL GOTO=http://www.alterweb.ca/ip.php?csv=ligne{{!VAR9}}" + "\n";
macro += "WAIT SECONDS=3" + "\n";
var part2 = "CODE:";
part2 += "VERSION BUILD=8940826 RECORDER=FX" + "\n";
part2 += "SET !ERRORIGNORE YES" + "\n";
part2 += "SET !DATASOURCE C:\\proxies.csv" + "\n";
part2 += "SET !DATASOURCE_COLUMNS 1" + "\n";
part2 += "SET !DATASOURCE_LINE {{line}}" + "\n";
part2 += "PROXY ADDRESS={{!COL1}}" + "\n";
part2 += "WAIT SECONDS=6" + "\n";
var big_count=parseFloat(prompt("loops=?",1000));
var fichier=parseFloat(prompt("fichier imacro","C:\\Users\\Libertad\\Documents\\iMacros\\Macros\\test.iim"));
for(var x=0;x<big_count;x++)
{
var rand=Math.floor(Math.random()*2000 + 1);
iimSet("rnd",rand);
iimPlay(macro);
if(window.content.document.body.textContent.contains('proxy'))
{
//if proxy word found
iimSet("line",rand);
iimPlay(part2); // at this point the proxy connection is established
iimPlay("C:\Users\Libertad\Documents\iMacros\Macros\test.iim");
}
else
{
//if proxy word isn't found
}
}