+1 in each loop

Discussions and Tech Support specific to the iMacros Firefox add-on.
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
amjadshaaban
Posts: 10
Joined: Tue May 19, 2015 4:04 pm

+1 in each loop

Post by amjadshaaban » Mon Jun 01, 2015 1:39 pm

i need help plz

small hhhhhhhhhh

i want to increase by one in each loop exaple first i have this code

Code: Select all

 TAG POS= 1 TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
 TAG POS= 2 TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
TAG POS= 3 TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
TAG POS= 4 TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
TAG POS= 5 TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
TAG POS= 6 TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
TAG POS= 8 TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
so i want to increase by one in each loop i fount a solution but little bad this is

Code: Select all

SET !ERRORIGNORE YES
SET !LOADCHECK NO
SET !REPLAYSPEED FAST
SET !TIMEOUT 15
SET !TIMEOUT_PAGE 200
SET !TIMEOUT_STEP 1

SET !DATASOURCE numbers.csv
SET !DATASOURCE_COLUMNS 1
set !loop 1
SET !DATASOURCE_LINE {{!loop}}

TAG POS= {{!COL1}} TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
were numbers in an excle file like this

Code: Select all

1
2
3
4
5
6
7
8
so the macro have the numbers from the file but i need a macro without using a files
techimac
Posts: 407
Joined: Fri Feb 20, 2015 9:27 pm

Re: +1 in each loop

Post by techimac » Mon Jun 01, 2015 10:04 pm

TAG POS={{!LOOP}} TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected
Available for custom iim, javascript iMacros scripts
amjadshaaban
Posts: 10
Joined: Tue May 19, 2015 4:04 pm

Re: +1 in each loop

Post by amjadshaaban » Tue Jun 02, 2015 7:08 am

techimac wrote:TAG POS={{!LOOP}} TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected

Thx i will try it soon :) :D
amjadshaaban
Posts: 10
Joined: Tue May 19, 2015 4:04 pm

Re: +1 in each loop

Post by amjadshaaban » Tue Jun 02, 2015 10:06 am

techimac wrote:TAG POS={{!LOOP}} TYPE=BUTTON ATTR=TXT:Favorite<SP>Favorited<SP>Unfavorite<SP>Protected

Thx Thx Thx working :)
Post Reply