如何在不使用按钮 "Play (Loop)" 的情况下设置 Select 所有 "checkbox" iMacros
How do I set the Select All "checkbox" iMacros Without using the button "Play (Loop)"
如何设置 Select 所有 "checkbox" iMacros 不使用按钮 "Play (Loop)" 并且不将标签设置为 50 行,因为我访问的网站没有密钥 select 全部,我需要选择 50 个类别。
这是我使用并尝试的代码
此版本javascript Imacros:
var macro;
macro = "CODE:";
macro += "TAG POS={{i}} TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES" + "\n";
macro += "WAIT SECONDS=0" + "\n";
for(i=1;i<=50;i++){
iimSet("i",i);
iimPlay(macro);
}
此版本 Imacros
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=2 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=3 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=4 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=5 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=6 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=7 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=8 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=9 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=10 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
---------
TAG POS=50 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
我想要的只是一行版本的iMacros
你试试
SET !LOOP 50
TAG POS={{!LOOP}} TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
也许这对你有帮助:
URL GOTO=javascript:{var<SP>chkBoxes=document.getElementsByName("category[]");for(i=0;i<chkBoxes.length;i++)chkBoxes[i].checked=true;undefined;}
如何设置 Select 所有 "checkbox" iMacros 不使用按钮 "Play (Loop)" 并且不将标签设置为 50 行,因为我访问的网站没有密钥 select 全部,我需要选择 50 个类别。 这是我使用并尝试的代码
此版本javascript Imacros:
var macro;
macro = "CODE:";
macro += "TAG POS={{i}} TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES" + "\n";
macro += "WAIT SECONDS=0" + "\n";
for(i=1;i<=50;i++){
iimSet("i",i);
iimPlay(macro);
}
此版本 Imacros
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=2 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=3 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=4 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=5 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=6 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=7 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=8 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=9 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
TAG POS=10 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
---------
TAG POS=50 TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
我想要的只是一行版本的iMacros
你试试
SET !LOOP 50
TAG POS={{!LOOP}} TYPE=INPUT:CHECKBOX FORM=ID:post_form ATTR=NAME:category[] CONTENT=YES
也许这对你有帮助:
URL GOTO=javascript:{var<SP>chkBoxes=document.getElementsByName("category[]");for(i=0;i<chkBoxes.length;i++)chkBoxes[i].checked=true;undefined;}