On 10/20/2024 8:15 AM, Vinny DeRobertis wrote:
Team,
I posted this on APR 27 but got no replies and now the topic is locked so here it is again.
Is there an expression or small script that can adjust the windows system volume? For example either add or subtract in increments of X% or perhaps commanding the actual 0-100%?
You're talking about _Audio_ "volume", right? On a "Windows" O/S machine?
An internet search shows that getting Jython/Python to control the computer's "master" volume control is apparently difficult, at least in part because various Windows O/Ses do things differently, much less non-Windows O/Ses. You may need to add a 3rd-party "library" to make it easier in Jython, but I am unsure how JMRI supports additional libraries for Jython.
Someone might want to investigate a "master volume control" from the Java perspective, though. If possible, they could make some sort of JMRI "plugin", or a new JMRI "feature".
Regards,
Billybob