This macro should activate tabs in sequence from 1th to 5th and then again. But there is something wrong. When you open 5 tabs, activate first of them and run this code in iMacros firefox extension, the 3th tab never is activated:
//imacros-js:showsteps no
var x=1;
while(true)
{
iimPlay("CODE:TAB T="+x+"\n");
alert(x);
x=x+1;
if (x==6) x=1;
}
But x variable is correct in every moment. There is something wrong with iimPlay(), or my version of iMacros.