因此,当我在imacros中运行此宏时,它会将我引导至www。 undefined .com 任何想法如何解决这个问题?
另外:它指示我到第一个网址,但是当它第二次循环到达该网站时
var macro;
macro ="CODE:";
macro +="VERSION BUILD=8601111 RECORDER=FX"+"\n";
macro +="TAB T=1"+"\n";
macro +="TAB CLOSEALLOTHERS"+"\n";
macro +="URL GOTO={{random}}"+"\n";
var am = "www.google.com"
var amc = "www.youtube.com"
var amb = "www.yahoo.com"
var link=[am, amc, amb];
#this is for selecting a random value
var random = Math.floor((Math.random() * 2));
iimSet("link",link[random])
iimPlay(macro)
#this is for looping 10 times
var n=10;
for(var i=0;i<n;i++)
{
iimPlay(macro)
}
答案 0 :(得分:0)
再一次。请申请:
var random = Math.floor(Math.random()*link.length);
根据你的iim-code,设置'random'而不是'link':
iimSet("random",link[random]);