Search found 12 matches

by penfold1992
Mon Feb 09, 2015 3:58 pm
Forum: Command Line and Scripting Interface
Topic: #Include js file into imacros
Replies: 5
Views: 18024

Re: #Include js file into imacros

hmmm, not quite what I was looking for however I dont think what I am looking for is possible... what I want to be able to do is include a function that is within another js file that is stored on my PC. instead of using iimPlay('jsfile'); to play a macro, I want to be able to copy the content of th...
by penfold1992
Thu Feb 05, 2015 9:46 pm
Forum: Command Line and Scripting Interface
Topic: #Include js file into imacros
Replies: 5
Views: 18024

Re: #Include js file into imacros

chivracq wrote: CIM...! :mrgreen:
-sigh- yes i didnt think it was relevant but your sig tells me otherwise :)

iMacro's - 8.6.0
Browser - Firefox 17.0.8 (dont judge! I am unable to update past this version!)
OS - Windows 7 64bit

as usual :D
by penfold1992
Wed Feb 04, 2015 4:22 pm
Forum: Command Line and Scripting Interface
Topic: #Include js file into imacros
Replies: 5
Views: 18024

#Include js file into imacros

Hello again :) is it possible to include a javascript file within another javascript file (or imacro) coming from C programming, I would use something like: #include <file.h> as an example. Is this possible to do within javascript and more importantly imacros? (i know that you can include into a web...
by penfold1992
Wed Jan 28, 2015 11:44 am
Forum: iMacros for Firefox
Topic: creating a csv file causing double quotes
Replies: 10
Views: 4659

Re: creating a csv file causing double quotes

fresh eyes work wonders :)
Something that seemed so impossibly difficult yesterday just worked in about 5 minutes today.
I should take more breaks :roll:
by penfold1992
Tue Jan 27, 2015 3:34 pm
Forum: iMacros for Firefox
Topic: creating a csv file causing double quotes
Replies: 10
Views: 4659

Re: creating a csv file causing double quotes

A better solution to count the number of lines in a file (not only a csv) is to use the browser objects to open the file and count the lines (you can also use a smilar method to write your csv output in javascript instead of using a macro) : file = Components.classes["@mozilla.org/file/local;1"].cr...
by penfold1992
Mon Jan 26, 2015 4:30 pm
Forum: iMacros for Firefox
Topic: creating a csv file causing double quotes
Replies: 10
Views: 4659

Re: creating a csv file causing double quotes

ok so I am back with good and bad news. Good news. Solution found: var m = "CODE:\n"; m += "SET !DATASOURCE [enter datasource here]\n"; m += "SET !DATASOURCE_LINE {{line}}\n"; m += "SET !EXTRACT {{!COL1}}\n"; var extract = "" var i = 1 do { iimSet("line",i); iimPlay(m); if (iimGetLastExtract(1) != n...
by penfold1992
Mon Jan 26, 2015 1:36 pm
Forum: iMacros for Firefox
Topic: creating a csv file causing double quotes
Replies: 10
Views: 4659

Re: creating a csv file causing double quotes

alright mate, cool I will look into some of those things and post back if I have an elegant solution. passing it back and forth feels like a pain because my process is the following: (x is the number of rows in the csv) for x times { run macro to extract data if data(1) == specific value {remember d...
by penfold1992
Mon Jan 26, 2015 11:30 am
Forum: iMacros for Firefox
Topic: creating a csv file causing double quotes
Replies: 10
Views: 4659

Re: creating a csv file causing double quotes

The result of removing those quotes is the following: "output1,output2,output3,output4, " The issue with this output is that a csv file would read this as one entry with the value "output1,output2,output3,output4, " rather than 4 entries. additionally, is there a way to count the number of entries w...
by penfold1992
Thu Jan 22, 2015 3:35 pm
Forum: iMacros for Firefox
Topic: creating a csv file causing double quotes
Replies: 10
Views: 4659

creating a csv file causing double quotes

iMacro's - 8.6.0 Browser - Firefox 17.0.8 (dont judge! I am unable to update past this version!) OS - Windows 7 64bit Hello again :) I have a little extraction tool in the following: var macro = "CODE:"; macro += "TAG POS=6 TYPE=TABLE ATTR=TXT:*\n"; macro += "TAG POS={{i}} TYPE=TD ATTR=scope:row&&TX...
by penfold1992
Thu Jan 22, 2015 10:35 am
Forum: iMacros for Firefox
Topic: issue with SAVEAS when using JavaScript
Replies: 5
Views: 3004

Re: issue with SAVEAS when using JavaScript

Pfff, never mind... (Consider reading the Forum Rules one day... and my Sig... :idea: ) The fact that I wasnt at the machine with the macro on was not an excuse :( I apologise again... iMacro's - 8.6.0 Browser - Firefox 17.0.8 (dont judge! I am unable to update past this version!) OS - Windows 7 64...
by penfold1992
Thu Jan 22, 2015 1:40 am
Forum: iMacros for Firefox
Topic: issue with SAVEAS when using JavaScript
Replies: 5
Views: 3004

Re: issue with SAVEAS when using JavaScript

chivracq wrote:And just to make sure, there is no Space in 'SAVEAS', but I reckon it's a Typo, you would have gotten some other RuntimeError like "Unknown Command"...
autocorrect... apologies XD
oh and what is CIM?
by penfold1992
Wed Jan 21, 2015 10:49 pm
Forum: iMacros for Firefox
Topic: issue with SAVEAS when using JavaScript
Replies: 5
Views: 3004

issue with SAVEAS when using JavaScript

Hello all, If I make a simple script to do the following: SET !EXTRACT hello SAVEAS TYPE=EXTRACT FOLDER=C:\ FILE=test.txt this works fine. However if I try to run this as javascript with the following var macro = "CODE:"; macro += "SET !EXTRACT hello\n"; macro += "SAVEAS TYPE=EXTRACT FOLDER=C:\ FILE...