Search found 46 matches

by groundfalling
Fri Sep 14, 2018 7:54 am
Forum: iMacros for Firefox
Topic: How to use Eval JS in imacros 10?
Replies: 11
Views: 2841

Re: How to use Eval JS in imacros 10?

@chivracq thank you for the info, actually my target is not to close the tab or window, i have been trying to use !EXTRACT in EVAL in imacros 10.0.2.1450 (free) in JS format to make it work in .htm and than use it to check a condition and either break the current macro or call a new macro. i see tha...
by groundfalling
Fri Sep 14, 2018 7:42 am
Forum: iMacros for Firefox
Topic: How to launch a macro >50 lines from the command line.
Replies: 7
Views: 2247

Re: How to launch a macro >50 lines from the command line.

i tried this: macroCode += 'SET pass EVAL(\"if (\\\"{{!EXTRACT}}\\\" == \"#EANF#\") {var x = 'ctrl';} else {var x = '';} x;\")\n'; macroCode += 'PROMPT {{pass}}\n'; and this: macroCode += 'SET pass EVAL(\"if (\"{{!EXTRACT}}\" == \"#EANF#\") {var x = 'ctrl';} else {var x = '';} x;\")\n'; macroCode +=...
by groundfalling
Fri Sep 14, 2018 7:39 am
Forum: iMacros for Firefox
Topic: How to launch a macro >50 lines from the command line.
Replies: 7
Views: 2247

Re: How to launch a macro >50 lines from the command line.

@groundfalling Apologies - you're right. I need to re-think all of this. I've got a specific use case that works for me - but not for the more general case. Back to the drawing board. @engeeaitch sorry off the topic, it seems that you are a JS person, do you happen to know the correct syntax to use...
by groundfalling
Thu Sep 13, 2018 12:27 pm
Forum: iMacros for Firefox
Topic: How to use Eval JS in imacros 10?
Replies: 11
Views: 2841

Re: How to use Eval JS in imacros 10

you'll need to use the Syntax/Solution I already gave you if you want a "Conditional CLOSE"..., or any other Solution that doesn't involve the 'EVENT' Mode..., but 'Ctrl^w' is not going to work...
I need the macro to find the condition and if condition is not met, it should close the Tab.
by groundfalling
Thu Sep 13, 2018 12:25 pm
Forum: iMacros for Firefox
Topic: How to use Eval JS in imacros 10?
Replies: 11
Views: 2841

Re: How to use Eval JS in imacros 10

I'm just trying to close the TAB in case the

Code: Select all

macroCode += 'TAG POS=1 TYPE=SPAN ATTR=CLASS:user-link\n';
is not found.
by groundfalling
Thu Sep 13, 2018 6:57 am
Forum: iMacros for Firefox
Topic: How to use Eval JS in imacros 10?
Replies: 11
Views: 2841

How to use Eval JS in imacros 10?

iMacros 10.0.2.1450 Free Firefox 61.0.1 Ubuntu 16.0.4 This Eval macros worked fine in imacros 8.9.7 SET !EXTRACT NULL SET !EXTRACT_TEST_POPUP NO TAG POS=1 TYPE=SPAN ATTR=CLASS:user-link EXTRACT=TXT SET pass EVAL("if (\"{{!EXTRACT}}\" == \"#EANF#\") {var x = 'ctrl';} else {var x = '';} x;") EVENT TYP...
by groundfalling
Thu Sep 13, 2018 3:36 am
Forum: iMacros for Firefox
Topic: How to launch a macro >50 lines from the command line.
Replies: 7
Views: 2247

Re: How to launch a macro >50 lines from the command line.

iMacros for Firefox 10.0.2.1450 Browser Firefox 62.0 OS: Windows 10 I am using the suggestion in the Wiki for Command Line Support here but needed to run a macro that was more than 50 lines long. I tried splitting the macro into two and then launching the macros one after the other, but that didn’t...
by groundfalling
Thu Sep 13, 2018 2:46 am
Forum: iMacros for Firefox
Topic: Launch imacros from terminal using imacros://run/?m=
Replies: 30
Views: 8091

Re: Launch imacros from terminal using imacros://run/?m=

I'm a bit lost here, The code shared by engeeaitch https://forum.imacros.net/viewtopic.php?f=11&t=29768 runs PROMPTS for both case 1 and case 2 one after the other. But in my code the case 2 part of the marco is not running at all, it only runs the case1 part of the code and than imacros stops.
by groundfalling
Wed Sep 12, 2018 5:51 pm
Forum: iMacros for Firefox
Topic: Launch imacros from terminal using imacros://run/?m=
Replies: 30
Views: 8091

Re: Launch imacros from terminal using imacros://run/?m=

Yep, have a look at "my" (last) Solution/Syntax to close a Tab/Window in the following Thread/Post (+ some last Post in the same Thread where I just posted some Update about v10.0.2) as this Syntax can easily be used for a "Conditional CLOSE"... Thank you for your response, closing the tab or windo...
by groundfalling
Wed Sep 12, 2018 9:08 am
Forum: iMacros for Firefox
Topic: Launch imacros from terminal using imacros://run/?m=
Replies: 30
Views: 8091

Re: Launch imacros from terminal using imacros://run/?m=

chivracq, would really appreciate your help here, in the below code what change should i make that if the macro cannot find the attribute "CLASS=user-link" on the page 'https://forum.imacros.net' only than it should move to case2 and open "https://addons.mozilla.org/en-US/firefox/addon/imacros-for-f...
by groundfalling
Wed Sep 12, 2018 4:35 am
Forum: iMacros for Firefox
Topic: Launch imacros from terminal using imacros://run/?m=
Replies: 30
Views: 8091

Re: Launch imacros from terminal using imacros://run/?m=

Yeah, this 'xdotool' Tool looks indeed like it is an "Equivalent" like 'AHK' or 'AutoIt' for Ubuntu... 8) (Could be nice if you could share your 'xdotool' Script btw... :idea: ) i used xdotool mousemove x y click 1 to uncheck the dialog box and than again to click the PLAY button.'click 1' would cl...
by groundfalling
Tue Sep 11, 2018 8:47 am
Forum: iMacros for Firefox
Topic: Launch imacros from terminal using imacros://run/?m=
Replies: 30
Views: 8091

Re: Launch imacros from terminal using imacros://run/?m=

found a workaround clicking the dialog box to uncheck and click 'play' using

Code: Select all

xdotool
next issue is finding a solution for 50 lines limit in the macro code. could you suggest anything?
by groundfalling
Mon Sep 10, 2018 10:52 am
Forum: iMacros for Firefox
Topic: Launch imacros from terminal using imacros://run/?m=
Replies: 30
Views: 8091

Re: Launch imacros from terminal using imacros://run/?m=

so i was able to find a workaround in case the pre-installed imacros 10 addon crash or disable or uninstall at the time of browser launch. Download the imacros xpi imacros_for_firefox-10.0.2.1450-an+fx-linux.xpi rename it to {81BF1D23-5F17-408D-AC6B-BD6DF7CAF670}.xpi and copy it to the firefox profi...
by groundfalling
Mon Sep 10, 2018 5:32 am
Forum: iMacros for Firefox
Topic: Launch imacros from terminal using imacros://run/?m=
Replies: 30
Views: 8091

Re: Launch imacros from terminal using imacros://run/?m=

Been seeing you active on this forum for years so i always assumed that you were a part imacros.net team, didn't know that you were only a user yourself. The problem is that Firefox non-quantum versions are getting obsolete and many websites are putting restrictions to update the browser in order to...
by groundfalling
Mon Sep 10, 2018 4:14 am
Forum: iMacros for Firefox
Topic: Launch imacros from terminal using imacros://run/?m=
Replies: 30
Views: 8091

Re: Launch imacros from terminal using imacros://run/?m=

The most important part is the frustration and disappointment which comes with the new imacros version 10.0.2.1450, when you launch the browser through terminal the addon itself fails and disappears most of the time, as if it was never installed and you have have to reinstall it which kills the whol...