Jump to content

How can I automate switching to Firefox and changing config settings? - (Moved)


Recommended Posts

Hello,

 

Brand new AutoIT user. I've done some basic scripting with Python, Excel VBA, and the venerable AutoHotKey.

 

Could someone perhaps share some pointers on how I could do the following -

 

I want to make a hotkey so that if I press, say, win+ctrl+5, my current Firefox session will open a new tab (or opening a new session would work), go to about:config, and go to the "media.hardwaremediakeys.enabled" option, and toggle it from its current state, then close the tab.

A runner-up would be simply taking me to the about:config screen, pasting in "media.hardwaremediakeys.enabled", and then I manually toggle it and close the tab.

 

Please let me know if I should post elsewhere.

Link to post
Share on other sites
Link to post
Share on other sites
  • 1 month later...

Hey, @Timfey not sure which version of FF you're using, but if it's compatible with MozRepl, you can use the FF.au3 UDF and the following functions:

_FFPrefSet() (set a config entry)

_FFPrefGet() (gets existing config entry)

_FFPrefReset() (resets a config entry)

Firefox post-quantum doesn't support MozRepl, but I tested some active FF forks that still do support it and the XUL framework. I've listed those browsers here:

Hope this helps!

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...