Wildcard

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
garzew2
Posts: 26
Joined: Sat Aug 28, 2010 8:54 pm

Wildcard

Post by garzew2 » Sun Aug 21, 2011 10:42 am

Helo. I try to use wildcard. On page i got 4 link with random numers that change every open or refresh, for example:
http://.../=jrjokjjf&PI=23451
http://.../=jrjokjjf&PI=34567
http://.../=jrjokjjf&PI=87532
http://.../=jrjokjjf&PI=22411
I try to use wildcard

Code: Select all

TAG POS=1 TYPE=A ATTR=HREF:http://ekspon.com/scripts/runner.php?KE=jrjokjjf&PI=*
but it only clik the first one ( those link dosen't dissaper after click)
Is there any way to make that macro will click all those liks one after another?
User avatar
322126384
Posts: 32
Joined: Sat Jul 23, 2011 1:39 am

Re: Wildcard

Post by 322126384 » Sun Aug 21, 2011 10:32 pm

Yes, you have to use the POS section of the TAG command. if you want to open all the links you will have to use the following code:

Code: Select all

TAG POS=1 TYPE=A ATTR=HREF:http://ekspon.com/scripts/runner.php?KE=jrjokjjf&PI=*
TAG POS=2 TYPE=A ATTR=HREF:http://ekspon.com/scripts/runner.php?KE=jrjokjjf&PI=*
TAG POS=3 TYPE=A ATTR=HREF:http://ekspon.com/scripts/runner.php?KE=jrjokjjf&PI=*
TAG POS=4 TYPE=A ATTR=HREF:http://ekspon.com/scripts/runner.php?KE=jrjokjjf&PI=*
But you may also want to try this code if it will work in your situation:

Code: Select all

TAG POS={{!LOOP}} TYPE=A ATTR=HREF:http://ekspon.com/scripts/runner.php?KE=jrjokjjf&PI=*
For the code above, you will have to set the macro in loop mode and set the max to 4.
-322126384
Post Reply