Author Topic: windows media player volume control  (Read 1872 times)

Malic

  • Full Member
  • ***
  • Posts: 102
windows media player volume control
« on: March 24, 2019, 08:48:08 AM »
Tried to show off on stream this morning how to set up VA to control volume, but when we tried to use it, it was changing the slider, but not the actual volume, is this a known thing and/or are their solutions?

Have tried WMP with and without admin mode

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2824
Re: windows media player volume control
« Reply #1 on: March 24, 2019, 10:58:33 AM »
Hey, Malic.

The internal volume of any application is generally not accessible through a common interface, other than the applications themselves monitoring the media keys (probably).  If the application itself offers an api to control it (something, say, like 'Winamp'), you can write an inline function or plugin to control it from VA.  The only generic way to control volume through Windows is through the system volume mixer:

Quote
'Set Audio Level'

This screen will allow you to add an action that will change a specified audio endpoint’s volume.  This is useful if you want to voice control or hotkey various volume controls.  You can choose to set the overall system volume, the volume of specific recording or playback devices (microphones, speakers, headphones) or the volume of various applications as they relate to the System Volume Mixer and the overall system volume (you can find the user interface of the system Volume Mixer in the system tray, or by right-clicking on the VoiceAttack icon in the task bar and selecting, ‘System Volume Mixer’).

If there is an api for Windows Media Player, it wouldn't be a stretch to make a set of inline functions to control it directly.