1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
var macro;
var jsLF = "\n";
var i, retcode, errtext;
var MyDelay;
var MyPosts;
/* Send code example */
macro = "CODE:";
macro += "URL GOTO=http://www.iopus.com" + jsLF;
macro += "URL GOTO=http://forum.iopus.com";
iimDisplay("Send Macro via iimPlay");
retcode = iimPlay(macro);
if (retcode < 0) { // an error has occured
errtext = iimGetLastError();
alert(errtext);
}
/* How to do looping */
iimDisplay("Loops");
for ( i = 1; i <= 2; i++) {
iimDisplay("loop "+i);
retcode = iimPlay("CODE:URL GOTO=http://forum.iopus.com/viewtopic.php?t="+i*10);
if (retcode < 0) { // an error has occured
errtext = iimGetLastError();
alert(errtext);
break;
}
} |
Partager