Author Topic: Change sound of [Active Window]  (Read 1530 times)

Syrius

  • Guest
Change sound of [Active Window]
« on: September 17, 2018, 10:59:58 AM »
Hi, I've made a nice and easy command to switch sound of a specific game, but I'd like to extend it to everything by switching the sound of the active window instead.
Is it possible, and how ? I've tried [Active Window] instead of the game, but didn't worked.

Thanks.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Change sound of [Active Window]
« Reply #1 on: September 18, 2018, 12:12:20 AM »
You need to use a token, specifically "{ACTIVEWINDOWPROCESSNAME}":
Code: [Select]
Toggle mute for application [{ACTIVEWINDOWPROCESSNAME}] audio

Syrius

  • Guest
Re: Change sound of [Active Window]
« Reply #2 on: September 18, 2018, 02:24:13 AM »
Thanks a lot, I'll try that as soon as I'm back home ^^