Search found 318 matches

by techimac
Fri Sep 22, 2017 6:41 am
Forum: iMacros for Firefox
Topic: Problem to fill a form with same IDs and dynamic CONTENT
Replies: 18
Views: 8240

Re: javascript on imacros help

Code: Select all

SET !ERRORIGNORE NO
SET !TIMEOUT_PAGE 1
TAG POS=1 TYPE=H1 ATTR=TXT:*CHIAMO*
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:container ATTR=NAME:answer[] CONTENT=OK
SET !TIMEOUT_PAGE 20
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:container ATTR=*
if you have more things to do in same script then this logic won't work
by techimac
Mon Sep 18, 2017 7:57 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

var Macro = ""; Macro += "CODE:" + "\n"; Macro += "SET !ERRORIGNORE YES" + "\n"; Macro += "SET !DATASOURCE homepage.csv" + "\n"; Macro += "SET !DATASOURCE_COLUMNS 1" + "\n"; Macro += "SET !DATASOURCE_LINE {{LOOPNUM}}" + "\n"; Macro += "SET !TIMEOUT_PAGE 60" + "\n"; Macro += "WAIT SECONDS = 800" + "...
by techimac
Mon Sep 18, 2017 10:16 am
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

I have changed the code var Macro = ""; Macro += "CODE:" + "\n"; Macro += "SET !ERRORIGNORE YES" + "\n"; Macro += "SET !DATASOURCE homepage.csv" + "\n"; Macro += "SET !DATASOURCE_COLUMNS 1" + "\n"; Macro += "SET !DATASOURCE_LINE {{LOOPNUM}}" + "\n"; Macro += "SET !TIMEOUT_PAGE 60" + "\n"; Macro += "...
by techimac
Sun Sep 17, 2017 6:48 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

send web page address
by techimac
Sun Sep 17, 2017 3:55 am
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

I have fixed code syntax but it might not do what you are trying
once url opens what you want to do?
by techimac
Sun Sep 17, 2017 3:54 am
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

var Macro1 = ""; Macro += "CODE:" + "\n"; Macro += "SET !ERRORIGNORE YES" + "\n"; Macro += "SET !DATASOURCE Shisha.csv" + "\n"; Macro += "SET !DATASOURCE_COLUMNS 1" + "\n"; Macro += "SET !DATASOURCE_LINE {{LOOPNUM}}" + "\n"; Macro += "SET !TIMEOUT_PAGE 60" + "\n"; Macro += "WAIT SECONDS = 800" + "\n...
by techimac
Sat Sep 16, 2017 5:04 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

var Macro1 = "";
Macro += "CODE:" + "\n";
Macro += "SET !ERRORIGNORE YES" + "\n";
Macro += "SET !DATASOURCE Shisha.csv" + "\n";

you need to use Macro1in other lines as well
by techimac
Fri Sep 15, 2017 8:43 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

what are you trying to do?
by techimac
Tue Sep 12, 2017 6:10 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

By +1, I mean increment by 1
by techimac
Tue Sep 12, 2017 6:08 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

It is possible.
by techimac
Mon Sep 11, 2017 6:17 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

without javascript you will have to add/delete repetitive code
if number of keywords are changing in csv

I gave you working code, use it.
by techimac
Sat Sep 09, 2017 7:05 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

for(var loop=1;loop<6;loop++)

here replace 6 with no of rows in csv file + 1
by techimac
Fri Sep 08, 2017 8:21 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

var Macro = ""; Macro += "CODE:" + "\n"; Macro += "SET !ERRORIGNORE YES" + "\n"; Macro += "SET !DATASOURCE word.csv" + "\n"; Macro += "SET !DATASOURCE_COLUMNS 1" + "\n"; Macro += "SET !DATASOURCE_LINE {{LOOPNUM}}" + "\n"; Macro += "SET !TIMEOUT_PAGE 60" + "\n"; Macro += "SET !VAR1 EVAL(\"1 + Math.f...
by techimac
Fri Sep 08, 2017 3:48 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

Still does not work. As soon as "iMacros" is entered from the database at the last word, it still does not start with the first one. That means I need a loop, that he always starts the database from the beginning, once it has gone through. you need javascript to loop again and again from beginning ...
by techimac
Thu Sep 07, 2017 7:58 pm
Forum: iMacros for Firefox
Topic: Loop Datasource
Replies: 28
Views: 11858

Re: Loop Datasource

run this in loop of 5 SET !TIMEOUT_PAGE 60 SET !ERRORIGNORE YES SET !DATASOURCE word.csv SET !DATASOURCE_COLUMNS 1 SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*15 + 1); randomNumber;") SET !VAR2 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;") SET !VAR3 EVAL("var...