Sign in to follow this  
Followers 0
Jules

How to check if the plugin MozRepl is installed ?

5 posts in this topic

#1 ·  Posted (edited)

Hello :) ,

I have developped an AutoIt script for Mozilla Firefox, using the FF.au3 UDF file, but I was wondering there was a way to check if the plugin MozRepl (that is necessary) is installed ? I mean an automatic check with AutoIt code, not going to "Modules" menu and check if MozRepl is in the add-on list of course ;)

 

Thanks :)

Edited by Jules

Share this post


Link to post
Share on other sites



you need not only to detect if MozRepl is installed - you must know that it is set to start automatically, and that there are no other extensions of configuration that may cripple your automatic process - for example, telemetry is disabled, crash recovery is disabled, and not to mention automatic updates... you also need to make sure that users do not interfere with your automation process, in case they are using Firefox for regular browsing. i'm sure experience will introduce you to more such pitfalls.

the most reliable way is to deploy a portable instance of Firefox, already configured for your automation needs. use that for automation, do not let users see it, use it or interact with it.

Share this post


Link to post
Share on other sites

Check out the function _FF_MozRepl_Detect in ffex.au3

Share this post


Link to post
Share on other sites
2 hours ago, orbs said:

you need not only to detect if MozRepl is installed - you must know that it is set to start automatically, and that there are no other extensions of configuration that may cripple your automatic process - for example, telemetry is disabled, crash recovery is disabled, and not to mention automatic updates... you also need to make sure that users do not interfere with your automation process, in case they are using Firefox for regular browsing. i'm sure experience will introduce you to more such pitfalls.

the most reliable way is to deploy a portable instance of Firefox, already configured for your automation needs. use that for automation, do not let users see it, use it or interact with it.

Thanks for your useful advice ! :) Actually, this script is meant to be deployed for a few users in a company, I think the easiest way is to tell them to install it on their browser ^^

Share this post


Link to post
Share on other sites
1 hour ago, Danp2 said:

Check out the function _FF_MozRepl_Detect in ffex.au3

By the way, thanks Danp2 for this useful function that I did not know :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • spuuunit
      By spuuunit
      Is it possible to know if a textbox is active in FireFox?
       
      This is what I want:
      if (Textbox in FireFox == Active) { }
    • Danp2
      By Danp2
      UDF to control FireFox via MozRepl:
       FF_V0.6.0.1b-15_au3
      Change Log:
      Original thread: http://www.autoitscript.com/forum/topic/95595-ffau3-v0601b-10/
      Current development is occurring over on GitHub. The repo can be found here.
       
    • tonycst
      By tonycst
      I want to pass "about:config" to firefox
      If i do ShellExecute ("firefox.exe","about:config"), i get new instance of firefox opening up which is bad because it makes changes to another profile instead of one that is currently running.
      Any ideas ?
    • mazz3d
      By mazz3d
      hello  everyone,
      I'm new with AutoIT and just looking for a way to open Firefox with random window size
      i have tried too many different samples from the web, some how it works but i can't make it works with Firefox 
      MozRpel and ff.au3 installed 
      right now i can open Firefox with this code, but i still can't control the window of Firefox
      ; open firefox #include <ff.au3> _FFStart() ; open firefox with random size  
    • jfcby
      By jfcby
      I have a script that sends multiple lines of text to a textbox using Firefox. I using _FFSetValue($sCellValue[7], "line one" & @CR & "line two", "id") from ff.au3. If it's a single line of text it works but MozRepl give the following error with multiple lines of text.
      Error:  
      __FFSend: try{FFau3.simulateEvent(window.content.top.document.getElementById('line one
      line two'),'Event','change',13);}catch(e){'_FFCmd_Err';};
      __FFWaitForRepl ==> Error return value: MozRepl ....>
      __FFSend: ;
      __FFRecv:
      __FFSend: FFau3.WCD=window.content.top.document;
      __FFWaitForRepl ==> Error return value: MozRepl ....>
      __FFRecv: !!! SyntaxError: unterminated string literal
      Details:

       [object HTMLDocument] - {mainForm: {...}, location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, ...}
      !!! SyntaxError: unterminated string literal
      Will MozRepl plugin for Firefox send multiple lines of text to a textbox?
      Thanks for your help.