是否可以在每小时之前定义一个cron表达式来激活5分钟?
每小时,我都可以使用
var macro = "SET !DATASOURCE keywords.csv" + "\n";
macro += "SET !DATASOURCE_LINE {{RowNo}}" + "\n";
macro += "URL GOTO=https://www.google.com/ncr" + "\n";
macro += "TAG POS=1 TYPE=INPUT:TEXT FORM=ID:tsf ATTR=ID:lst-ib CONTENT={{!COL1}}" + "\n";
macro += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:tsf ATTR=NAME:btnK" + "\n";
var NextButton = "TAB T=1" + "\n";
NextButton += "WAIT SECONDS=1" + "\n";
NextButton += "TAG POS=1 TYPE=A ATTR=TXT:Next" + "\n";
NextButton += "WAIT SECONDS=0.5" + "\n";
for(var m=1; m<60; m++) {
iimSet("RowNo",m)
iimPlayCode(macro)
do {
var NextBtnCheck = iimPlayCode(NextButton);
if (NextBtnCheck != 1)
break;
} while(true)
}
但我需要它才能在一小时前5分钟......