Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: Modify core settings programmatically (Read 338 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Modify core settings programmatically

I would like to modify foobar2000 preferences programmatically. In particular, I would like the Networking > Proxy setting to be automatically changed when I turn on/off my VPN (so I can access geo-restricted podcasts).

As we know, the config file format is not public.  :(

I don't see any API methods in the SDK to change this either.

My guess is that if the networking preferences pane is implemented in the same way as plugins would make their preferences pages, then there are GUIDs for those settings. If I could figure out those GUIDs, and also how to cause the foobar preferences API to update its settings automatically, then I could hook it up to a COM server or something, which can then be called from a PowerShell script that OpenVPN calls.

My workaround is an AutoIt script to simply walk through the preferences and toggle the options, but I was hoping someone knows a better way!
- thomas

Re: Modify core settings programmatically

Reply #1
You just can't update the settings programmatically.
Live editing the config file will do you no good (will not be reloaded, may get rewritten with original settings on shutdown).
Feature request noted.

Re: Modify core settings programmatically

Reply #2
You just can't update the settings programmatically.
Live editing the config file will do you no good (will not be reloaded, may get rewritten with original settings on shutdown).
That's what I was afraid of. :-/ I know editing the file won't help which is why I was hoping for there to be some API that I missed.

Feature request noted.
Awesome, looking forward to it!
- thomas

 
SimplePortal 1.0.0 RC1 © 2008-2021