Code: Select all
var iret = 1
var firstrun = true
var tabcounter = 0
/* here comes the loop */
/* automating each "next" tab */
/* as long as a next tab is found*/
while ( iret >=0 )
{
tabcounter ++;
iimDisplay("loop# " + tabcounter);
macro = "CODE:";
if (firstrun)
{
/* don't switch tabs in first loop*/
firstrun = false;
}
else
{
/* select next tab */
macro += "TAB T=2" + "\n";
}
macro += "URL GOTO=http://www.iopus.com" + "\n";
iret = iimPlay(macro)
}
alert ("End of tabs reached.")