Auto incement the input number

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
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
netman
Posts: 1
Joined: Tue Dec 07, 2010 7:14 pm

Auto incement the input number

Post by netman » Tue Dec 07, 2010 8:36 pm

Hi
There's a field which gets only a number and shows some values.
Here's the macro to get the data by first given number:

Code: Select all

VERSION BUILD=7121109
TAB T=1
TAB CLOSEALLOTHERs
URL GOTO=http://ferestande.com
TAG POS=1 TYPE=IMG ATTR=ID:enter_tracking
SET !VAR1 226257
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:peigiri_form-portal.php ATTR=ID:resnum CONTENT=19/71-21-{{!VAR1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:peigiri_form-portal.php ATTR=ID:input_button_tracking&&VALUE:رهگيري
'New page loaded
TAB T=2
SAVEAS TYPE=HTM FOLDER=C:\Ferestande FILE=+{{!NOW:yyyymmdd_hhnnss}}
i want to auto increase !VAR1 in next loop(s). it should be simple but i'm confused :shock:
how can i do this? using ADD didn't helped :?:
thx
siniy
Posts: 118
Joined: Sat Nov 07, 2009 7:44 pm

Re: Auto incement the input number

Post by siniy » Fri Dec 10, 2010 11:51 am

Code: Select all

VERSION BUILD=7121109
TAB T=1
TAB CLOSEALLOTHERs
URL GOTO=http://ferestande.com
TAG POS=1 TYPE=IMG ATTR=ID:enter_tracking
SET !LOOP 26257
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:peigiri_form-portal.php ATTR=ID:resnum CONTENT=19/71-21-2{{!LOOP}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:peigiri_form-portal.php ATTR=ID:input_button_tracking&&VALUE:رهگيري
Play it with loop 30000 for example.
I guess there's limit to 99999 loops in imacros
Post Reply