Locating the volume button on the taskbar with UIA

  .net, ui-automation, windows

I need to get the location of the volume button on the taskbar, so in order to do that I’m using the windows UIA. The problem is that I need a "dynamic" way to locate its path (I need it to work on every computer), but according to the UIA inspector the name of the button is the name of the audio device…
Is there a way to locate its path that would work on every windows machine?

Source: Windows Questions

LEAVE A COMMENT