Need some help..

heeh3212

Newbie
Joined
Jun 3, 2013
Messages
5
Reaction score
0
Ok well im running imacro on a website.. And im running it so that it will fill out all the fields for me number times without me having to keep doing it over and over again.

Unfortunately i cant put the website on here cause im a new member :P
But if you guys got skype then send me a msg with ur name and ill send you the website link and you can post it here.

For the email at the bottom i want to enter a different email every time the macro loops.

So for that i have a javascript code.. Well the code is big and so i made another one that is smaller:

Code:
myfruits = new Array();myfruits.push("Strawberry");
myfruits.push("Banana");
myfruits.push("Kiwi");
myfruits.push("Orange");
myfruits.push("Mango");


function getFruit() {
for(i=0;i<10;i++) //change 10 to the number of times you want it to be ran
{
   randomint = Math.floor(Math.random()*myfruits.length);
   }
   return  myfruits[randomint];
}
   iimSet("fruit",myfruits[randomint]); //in the macro you can access the random fruit through {{fruit}} much like you would {{!VAR1}}
   iimPlay("fruitmacro.iim");

And the imacro code is this:

Code:
VERSION BUILD=8300326 RECORDER=FXTAB T=1
URL GOTO=******
WAIT SECONDS=0
FRAME NAME="iframe"
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:take ATTR=NAME:answer[8] CONTENT=KPT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:take ATTR=NAME:answer[18] CONTENT=KPT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:take ATTR=NAME:answer[20] CONTENT=BloodSho
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:take ATTR=NAME:answer[25] CONTENT=KPT<SP>-<SP>Welcome<SP>Back
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:take ATTR=NAME:answer[35] CONTENT=KPT<SP>ft<SP>Snoop<SP>Doff<SP>&<SP>Bella<SP>Nae<SP>-<SP>How<SP>It<SP>Goes
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:take ATTR=NAME:answer[41] CONTENT=KPT
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:take ATTR=ID:email CONTENT={{fruit}}
WAIT SECONDS=5


Unfortunately when you get to the bottom email part.. instead of going to the various options that were given in the js file i keep getting "__undefined__"

Anyone know how to fix this?


P.S. The fruits are just random.. Ill change that to actual emails once the code works correctly.
 
Back
Top