Search found 75 matches

by frankhack1
Tue Jan 24, 2017 10:03 am
Forum: General Support & Discussions
Topic: Change iMacros Browser's Windows Title
Replies: 15
Views: 7940

Re: Change iMacros Browser's Windows Title

mike007 wrote:javascript..

Code: Select all

Chg_Title("Helo world")
iimExit()
function Chg_Title(title) { document.title = title; }
Where and how do I use this code on a .js to change the title of a window?
by frankhack1
Tue Jan 24, 2017 9:59 am
Forum: General Support & Discussions
Topic: Replace / with EVAL
Replies: 1
Views: 1081

Re: Replace / with EVAL

var macros ; macros = "CODE:"; macros += "SET !ERRORIGNORE YES" + " \n "; macros += "SET !REPLAYSPEED FAST" + " \n "; macros += "SET DESCRIPTION HOLA/QUE/TAL" + " \n "; macros += "PROMPT {{DESCRIPTION}}" + " \n "; // The next line is where the magic happens (to Replace / with EVAL) macros += "SET D...
by frankhack1
Tue Jan 24, 2017 9:49 am
Forum: General Support & Discussions
Topic: Building Web Interfaces to run macros
Replies: 1
Views: 1069

Re: Building Web Interfaces to run macros

I hope you can still find this useful at this point (3 years old post with no answer) I attached a picture of the website which is localhost (you will need to install WAMP Server). I'm using port 81 but you don't need to work on port 81, you can just use the default port that WAMP server configures....
by frankhack1
Tue Jan 24, 2017 9:21 am
Forum: General Support & Discussions
Topic: Open external file
Replies: 4
Views: 2842

Re: Open external file

if using .js you can launch your excel file to really open by doing this:

Code: Select all

var file = Components.classes["@mozilla.org/file/local;1"]  
                     .createInstance(Components.interfaces.nsILocalFile);  
file.initWithPath("C:\\Documents and Settings\\file.xlsx");  
file.launch();
by frankhack1
Wed Jan 11, 2017 3:40 pm
Forum: iMacros for Firefox
Topic: How to replaces </BR> for <BR> with EVAL in .js
Replies: 3
Views: 1329

Re: How to replaces </BR> for <BR> with EVAL in .js

You are right, I didn't use trim but split.

And yes, I also tried the solution where I was duplicating x times the </BR> to replaces this on a text but it was not a good solution.

Hopefully this will help other persons.
by frankhack1
Wed Jan 11, 2017 1:09 pm
Forum: iMacros for Firefox
Topic: How to replaces </BR> for <BR> with EVAL in .js
Replies: 3
Views: 1329

Re: How to replaces </BR> for <BR> with EVAL in .js

Replying to myself, I used the trim and this did the job, here is the used code: var macros; macros = "CODE:"; // PARAMETERS macros += "SET !ERRORIGNORE YES" + "\n"; // DATABASE GENERAL macros += "SET !DATASOURCE C:\\General.csv" + "\n"; macros += "SET !DATASOURCE_LINE 1" + "\n"; // VARIABLES macros...
by frankhack1
Sat Jan 07, 2017 11:10 pm
Forum: iMacros for Firefox
Topic: How to replaces </BR> for <BR> with EVAL in .js
Replies: 3
Views: 1329

How to replaces </BR> for <BR> with EVAL in .js

Hi, I need to replaces </BR> for <BR> that I'm getting from a text in a .csv file * I know I can go and change this by just opening the .csv with Notepad++ and replace it all but I have a lot of other situations where I really need to know how to replace this * I know how to use the replace on EVAL ...
by frankhack1
Thu Mar 31, 2016 6:43 pm
Forum: iMacros for Firefox
Topic: Issue when looping in js, is doing 1,2 and then 4, why?
Replies: 7
Views: 2243

Re: Issue when looping in js, is doing 1,2 and then 4, why?

Hi chivracq Check the "Content of 1st macros" The problem is on the line 11, where the "test.js" is being called. If I remove or comment (//) that line, all works good but I do need the 1st macros to call the 2nd macros, I know I can put it all in one macros but I said, what you see here is not the ...
by frankhack1
Mon Mar 28, 2016 1:07 am
Forum: iMacros for Firefox
Topic: Issue when looping in js, is doing 1,2 and then 4, why?
Replies: 7
Views: 2243

Re: Issue when looping in js, is doing 1,2 and then 4, why?

chivraq, maybe you have an idea? I have the same configuration as you.
by frankhack1
Sat Mar 26, 2016 3:03 pm
Forum: iMacros for Firefox
Topic: Issue when looping in js, is doing 1,2 and then 4, why?
Replies: 7
Views: 2243

Re: Issue when looping in js, is doing 1,2 and then 4, why?

Hi.

In your Firefox is going 1, 2, 3, 4, 5, 6, 7, 8, 9, 10?

Did you saw my video, there you can see mine is going 1,2,4,6,8
by frankhack1
Fri Mar 25, 2016 1:17 am
Forum: iMacros for Firefox
Topic: Issue when looping in js, is doing 1,2 and then 4, why?
Replies: 7
Views: 2243

Issue when looping in js, is doing 1,2 and then 4, why?

Hi. First of all my info: - Win7 x64 - Firefox PaleMoon 24.6.2 (x86) - iMacros 8.8.2 Now the issue. 01. I have 2 js. The 1st macros calls the 2nd macros and this after that is executed, then the 1st macros do a loop and execute the 2nd macros again and so on. 02. The loop start at 1, then it goes to...
by frankhack1
Thu Oct 29, 2015 2:22 pm
Forum: iMacros for Firefox
Topic: How to prevent <br> being replaced with breakline in js
Replies: 2
Views: 826

Re: How to prevent <br> being replaced with breakline in js

Nobody knows or this is not possible to be done in js (I don't want to do it through an iim file) or this is an already answered questions?
by frankhack1
Tue Oct 27, 2015 12:30 am
Forum: iMacros for Firefox
Topic: How to prevent <br> being replaced with breakline in js
Replies: 2
Views: 826

How to prevent <br> being replaced with breakline in js

Hi. I have Windows 7 x64 PaleMoon 24.6.2 (x86) iMacros 8.8.2 So, I have a macros.js that extract a text and it saves the content in a variable that later in the macros is used to fill a textbox. This is the code that extracts the text, I avoided the URL GOTO which will be the 1st line... var macros;...
by frankhack1
Mon May 18, 2015 9:16 pm
Forum: iMacros for Firefox
Topic: How to run multiple file iim/js continuous?
Replies: 13
Views: 16789

Re: How to run multiple file iim/js continuous?

Hi chivracq. Yes, I copied the configuration from your posts since I have a hugh memory leak with normal Firefox and sometimes they got so corrupted that the Firefox finally close sudenly. Now all is more stable.... I only have one thing not working correctly on PaleMoon and is this = http://forum.i...