Page 1 of 1

How to print in console imacros

Posted: Wed Aug 07, 2019 1:15 pm
by Chipuca
I just want when i have opened imacros in my browser just print something in the green sidebar ? I remember sometimes i used some kind of command that let me print creating a green sidebar someone knows how?

Re: How to print in console imacros

Posted: Wed Aug 07, 2019 3:39 pm
by chivracq
Chipuca wrote:
Wed Aug 07, 2019 1:15 pm
I just want when i have opened imacros in my browser just print something in the green sidebar ? I remember sometimes i used some kind of command that let me print creating a green sidebar someone knows how?
Hum, still didn't manage to read the Forum Rules, I see, for what kind of Tech Info to include when you open a Thread... :roll:

You can put a Question Mark to your Thread Title(s) when you are asking a Qt..., you are not sharing a 'HowTo'... :wink:

But yep, what you want comes from the 'iimDisplay()' Command, which is only supported from '.js' Script wen using iMacros for FF until v9.0.3, or when using the Scripting Interface from the 'Enterprise Edition'...

BUT..., it is possible to deliberately trigger a RuntimeError in the Green iMacros Side-Panel to display some mini-Report for example, by firing a 'MacroError()' at the end of your Script and that should work in all Versions/Browsers, I think... (I use it myself on FF with v8.8.2 + v8.9.7.) 8)

But you need to make sure to place it at the end of your Script, as the 'MacroError()' will "unmistakenly" abort your Macro, you cannot use it to display stg while your Macro is still running, like 'iimDisplay()' does..., or at least I didn't manage to get that Functionality... :oops:
One of the (intermediary) Beta Versions during the Beta Testing Process for v10.0.2 for FF was "able" to display "intermediary" RuntimeErrors (prevented by '!ERRORIGNORE') while still running, so I guess it could have worked in that Version, but that Behaviour was later prevented (by @Dev, and thus by Design) in some next Beta and thus in the "Final" v10.0.2 for FF that then was released... :oops: