Ok. Is there anyway I can have a looped script that will submit data to a form lets say 10 times from a .CSV file, then a new command happens after the 10th form submit. So the loop would be data from lines 1-10 form submits, command, data from 11-20 form submits, command, etc.
Thanks!
CSV Data Filling Question
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
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
-
- Posts: 214
- Joined: Fri Jul 04, 2008 1:28 pm
- Location: Ahmedabad
- Contact:
Re: CSV Data Filling Question
You can use Java Script for Looping
MyScript.js
MyMacro.iim
Here you can update your code as per your requirement, in above case you can replace code(TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT=) with your code.
If more details are required, get back
MyScript.js
Code: Select all
for(x=1;x<10;x++)
{
iimSet("xloop",x)
iimPlay("MyMacro.iim")
}
Code: Select all
VERSION BUILD=6111213 RECORDER=FX
TAB T=1
SET !DATASOURCE MyCSVfile.csv
SET !DATASOURCE_LINE {{xloop}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
If more details are required, get back

Dharmendra Uteshiya
http://www.dharmesh-uteshiya.co.nr
http://www.dharmesh-uteshiya.co.nr