JS file help, willing to pay! Need ASAP

Find a consultant or advertise your services here

Moderators: Community Moderators, iMacros Moderators

JS file help, willing to pay! Need ASAP

by mrjjman on Fri Jul 29, 2016 6:24 pm

Here is my js code:
_______
var i, retcode;
for (i=0;i<=0;i++){
iimPlay("CNN2.iim");
iimPlay("CNN2.iim");
}
_______

And here is the CNN2 macro code:
VERSION BUILD=8970419 RECORDER=FX
TAB T=1
SET !DATASOURCE JSTest.csv
SET !DATASOURCE_COLUMNS 7
SET !DATASOURCE_LINE {{!LOOP}}
URL GOTO=https://www.google.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}

The problem is that the content isn't looping, so the list is 1, 2, 3, and so on, but it keeps using the first option and not looping to the next column number in the series, ie 2, 3, and so on. Any ideas? I need help with this ASAP, if anyone has any ideas!
mrjjman
 
Posts: 15
Joined: Sun Apr 10, 2016 10:41 pm

Re: JS file help, willing to pay! Need ASAP

by iimfun on Sat Jul 30, 2016 5:57 am

Try this js-script
Code: Select all
var i, retcode;
// set your value below
var linesInCsv = 5;
for (i=1; i<=linesInCsv; i++) {
    iimSet("i", i);
    iimPlay("CNN2.iim");
}


with the following iim-macro
Code: Select all
TAB T=1
SET !DATASOURCE JSTest.csv
SET !DATASOURCE_COLUMNS 7
SET !DATASOURCE_LINE {{i}}
URL GOTO=https://www.google.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT={{!COL1}}
iimfun
 
Posts: 216
Joined: Tue Jul 19, 2016 6:06 am


Return to iMacros Consultants

Who is online

Users browsing this forum: No registered users and 1 guest

-->