firefox - How to step 2 with iMacros loop? How to select every other href? -
i have imacros code fragment
version build=7200328 recorder=fx tab t=1 url goto=http://feedburner.google.com/fb/a/myfeeds set !loop 1 tag pos={{!loop}} type=a attr=href:http://feedburner.google.com/fb/a/dashboard?id=* tag pos=1 type=a attr=txt:publicize tag pos=1 type=span attr=txt:socialize tag pos=1 type=select form=name:editfeedactionform attr=id:postfields content=$title<sp>and<sp>body wait seconds=2 tag pos=1 type=input:submit form=id:mainform attr=value:save tag pos=1 type=a attr=txt:feedburner the above script extract hrefs match http://feedburner.google.com/fb/a/dashboard?id=* rule, , try navigate further on page.
however there 2 links on page same stuff , want loop odd values. 1,3,5,7 how set custom step value loop?
...and want loop odd values
the imacros language descriptive language (similar html) , not contain conditional statements or fancy.
so instead of using imacros loop button, use built-in javascript scripting support of imacros firefox run loop. inside loop can call macro iimplay (and use iimset define values).
something should work:
iimdisplay("start loop...); (i = 0; < 100; i=i+2) { iimdisplay("step "+(i+1)); retcode = iimplay("your macro name here"); if (retcode < 0) { report += ": "+iimgetlasterror(); alert ( report ); } } iimdisplay("complete");
Comments
Post a Comment