Search found 223 matches

by ABooth
Fri Jan 15, 2010 2:31 pm
Forum: iMacros for Firefox
Topic: How to Fill Rich Text Boxes
Replies: 1
Views: 1092

Re: How to Fill Rich Text Boxes

I macros needs something to set the content of. Your editor is an iframe with a page that has an empty body. It doesn't have an html element to set the content of. The JavaScript is writing the innerHTML of the iframe sources <body> (generating an html document). iMacros could put something in, once...
by ABooth
Thu Jan 14, 2010 4:50 pm
Forum: iMacros for Firefox
Topic: Can´t record Macros
Replies: 12
Views: 4787

Re: Can´t record Macros

I foresee a response with the words 'reboot', 'uninstall', 'retry', 'close', 'other' ...
by ABooth
Thu Jan 14, 2010 4:47 pm
Forum: iMacros for Firefox
Topic: Extract Data in CSV COL
Replies: 3
Views: 1669

Re: Extract Data in CSV COL

See the SAVEAS command

Code: Select all

SAVEAS TYPE=EXTRACT FOLDER=C:\My<SP>Folder FILE=Test<SP>Results.csv
by ABooth
Thu Jan 14, 2010 4:31 pm
Forum: iMacros for Firefox
Topic: Problem
Replies: 15
Views: 3553

Re: Problem

Good spot.

FYI:-

Code: Select all

// Pašto kodas
does seem to be a bug, where the š causes the script to fail, even though it's in a comment.
by ABooth
Thu Jan 14, 2010 4:27 pm
Forum: iMacros for Firefox
Topic: URL as VARiable, is it real?
Replies: 1
Views: 630

Re: URL as VARiable, is it real?

If you are creating a variable called A1, you need to set it via a JavaScript macro, using the iimSet() function. You can get to a data file in CSV format without JavaScript and reference the data using it's column and looping through it, using the iMacro plugin's play loop button. See Demo-Loop-Csv...
by ABooth
Wed Jan 13, 2010 10:26 pm
Forum: iMacros for Firefox
Topic: Problem
Replies: 15
Views: 3553

Re: Problem

I tested your script and it failed because you used the character in a comment field. This is probably a bug in the iMacros scripting engine.You also added a curly brace { to the end of the script for no reason.. This code worked though const iterations = 5000; // How many times to loop through cons...
by ABooth
Wed Jan 13, 2010 8:38 pm
Forum: iMacros for Firefox
Topic: iMacro using same variable in every loop - May be a Bug
Replies: 4
Views: 3664

Re: iMacro using same variable in every loop - May be a Bug

Firstly, you don't need to use !VAR1. You can just use !EXTRACT, seeing that you are assigning whatever is in !EXTRACT into !VAR1 Secondly, !EXTRACT contains all extracted data, therefore, each EXTRACT=TXT appends to !EXTRACT Try the following: - TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:upload.php A...
by ABooth
Wed Jan 13, 2010 8:01 pm
Forum: iMacros for Firefox
Topic: Get Clipboard Text Extracted from Macro?
Replies: 8
Views: 3876

Re: Get Clipboard Text Extracted from Macro?

Well, unless the Javascript is dynamically generated, don't do it. Javascript functions can go into the head section of the HTML (like the updateCells() function) and can be executed by anything in the DOM The only inline stuff you would need to write on the fly would be the object events (OnClick, ...
by ABooth
Wed Jan 13, 2010 6:29 pm
Forum: iMacros for Firefox
Topic: iMacro using same variable in every loop - May be a Bug
Replies: 4
Views: 3664

Re: iMacro using same variable in every loop - May be a Bug

You can prove that by setting !VAR1 to NULL before the script exits.

Code: Select all

TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:Something CONTENT={{!VAR1}}
SET !VAR1 NULL
by ABooth
Wed Jan 13, 2010 4:38 pm
Forum: iMacros for Firefox
Topic: Problem
Replies: 15
Views: 3553

Re: Problem

To fix BadParameter: !DATASOURCE_LINE must be positive integer, line: 9 change:- iimSet("loopCounter", ""+i); to iimSet("loopCounter", i + 1); Your loop goes from 0 to 99 and you can't have a line 0 in your csv file. The createLogins is not defined, line: 7 is probably a syntax error somewhere. It l...
by ABooth
Wed Jan 13, 2010 4:24 pm
Forum: iMacros for Firefox
Topic: Get Clipboard Text Extracted from Macro?
Replies: 8
Views: 3876

Re: Get Clipboard Text Extracted from Macro?

I tried this in my script: iimSet("WORDS", wordsmod); iimPlay( "CODE:URL GOTO=javascript:updateCells('{{WORDS}}');"); I GOTO the URL where the function updateCells(content) is and the script does not go into that function at all. I even put an alert("in updateCells()"); in the function but it never...
by ABooth
Wed Jan 13, 2010 4:01 pm
Forum: iMacros for Firefox
Topic: LOOP in JavaScript
Replies: 9
Views: 4677

Re: LOOP in JavaScript

That's because you are running it once only, every time, so {{!LOOP} is always 1 Modify the JavaScript macro as below const iterations = 100; for( var i=1; i<=iterations; i++) { iimSet("iteration", i); iimPlay("macro1", 60); } iimPlay("macro2", 60); iimPlay("macro3", 60); Change your iMacro as below...
by ABooth
Wed Jan 13, 2010 3:55 pm
Forum: iMacros for Firefox
Topic: Feature Requests & Bug Fix Requests. ADD YOURS!
Replies: 363
Views: 438877

Re: Feature Requests & Bug Fix Requests. ADD YOURS!

How about adding a "Take Screenshot" button to the record tab, that's enabled only when recording? It would insert

Code: Select all

SAVEAS TYPE=PNG FOLDER=* FILE=*
into the generated macro.
by ABooth
Wed Jan 13, 2010 4:50 am
Forum: iMacros for Firefox
Topic: Why the code recorded for form input by iMacro cannot work
Replies: 20
Views: 7258

Re: Why the code recorded for form input by iMacro cannot work

Sorry. I just think of the 3rd question, I have one column is 2010 or 2009. Now I can only have two set of code for 2010 or 2009 because some line's difference. How can I make it in one set of coding when 2010 use this line while for 2009 use another line, but the rest part of the code are the same...
by ABooth
Wed Jan 13, 2010 4:41 am
Forum: iMacros for Firefox
Topic: Why the code recorded for form input by iMacro cannot work
Replies: 20
Views: 7258

Re: Why the code recorded for form input by iMacro cannot work

A CSV file will typically look something like this:- Title,Firstname,Lastname,Street Mr,Fred,Smith,"123 Some Street, Someplace" Mr,John,Doe,456 Another Street" Mrs,Jane,Brown,78 House Road Mr,Ivor,Bigun,90 Longmeat drive The iMacro setup would be:- VERSION BUILD=6801021 TAB T=1 SET !DATASOURCE MyDat...