Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Modify core settings programmatically (Read 1674 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.
Microsoft Windows: We can't script here, this is bat country.

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