Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • October 20, 2017, 10:16 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Muting focused program with a key press  (Read 952 times)

Phoenix232

  • Supporting Member
  • Joined in 2017
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
IDEA: Muting focused program with a key press
« on: July 23, 2017, 03:35 PM »
I think it would be possible to do this with AHK, but I'm not sure because I have no knowledge whatsoever about it. The idea is to mute the focused windows with a key press and unmute it after pressing the same key again, maybe using a key combination or one of the function keys.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 927
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #1 on: July 23, 2017, 09:21 PM »
 :) AppMute toggles the sound of the active app when F1 is pressed. If the desktop or taskbar is active, all sound is toggled.

AppMute.jpgIDEA: Muting focused program with a key press

It's a very quick hack, it uses the volume mixer in Windows 10.

Save the script as AppMute.ahk.
Download and Install AutoHotkey to run the script.

Skrommel

24.07.2017: Keeps SndVol.exe running to prevent fullscreen windows from restoring. Added menu option to show the volume mixer.
24.07.2017: Added user defined hotkey option.
25.07.2017: Removed the tooltip to prevent fullscreen windows from restoring.
30.07.2017: Changed the way SndVol.exe is handled, to stop it from showing up in Win7.
« Last Edit: July 29, 2017, 06:41 PM by skrommel »

Phoenix232

  • Supporting Member
  • Joined in 2017
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #2 on: July 23, 2017, 09:24 PM »
Thank you very much for that. It's gonna help me a lot.

Just a quick question: It minimizes some full screen programs, but I guess that's kind of expected. Would it be possible to not make it do that? Anyways, the program works perfectly. :D
« Last Edit: July 23, 2017, 09:43 PM by Phoenix232 »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 927
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #3 on: July 23, 2017, 11:30 PM »
Maybe the latest version is better? It minimizes the volume mixer window.

I've tried it with YouTube in full screen, and that works OK. What programs are you having problems with?
« Last Edit: July 24, 2017, 09:12 AM by skrommel »

Phoenix232

  • Supporting Member
  • Joined in 2017
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #4 on: July 23, 2017, 11:45 PM »
Maybe the latest version is better? It minimizes the volume mixer window.

I've tried it with YouTube in full screen, and that works OK. What programs have you problems with?

Yes, it works perfectly. Thank you very much. :DDDD

EDIT: It still minimizes games, for some weird reason.
« Last Edit: July 24, 2017, 01:45 AM by Phoenix232 »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 927
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #5 on: July 24, 2017, 07:14 AM »
It must be the volume mixer starting... Try the updated version. It keeps SndVol.exe running, and I added a menu option to show the volume mixer. And an option to change the hotkey.
« Last Edit: July 24, 2017, 09:37 AM by skrommel »

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 8,945
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #6 on: July 24, 2017, 09:38 AM »
Maybe the latest version is better? It minimizes the volume mixer window.

I've tried it with YouTube in full screen, and that works OK. What programs have you problems with?

Yes, it works perfectly. Thank you very much. :DDDD

EDIT: It still minimizes games, for some weird reason.

If a game is in full screen mode, accessing other applications/utilities will remove it from that mode.  Have you tried full-screen maximized?  That was my solution, but I know that there is some reduction in performance in that mode, so not sure if that would affect you.

Phoenix232

  • Supporting Member
  • Joined in 2017
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #7 on: July 24, 2017, 11:42 AM »
It must be the volume mixer starting... Try the updated version. It keeps SndVol.exe running, and I added a menu option to show the volume mixer. And an option to change the hotkey.

Unfortunately it's still minimizes the game when I press the button, but wraith808's solution solved the problem.

PS.: I'm not sure if this is relevant or not, but I'm using Windows 7 instead of 10.
« Last Edit: July 24, 2017, 01:16 PM by Phoenix232 »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 927
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #8 on: July 25, 2017, 05:58 AM »
Could it be the tooltip? What game are you running?

:) Yes! It was the tooltip. Try the latest version.
« Last Edit: July 25, 2017, 10:51 AM by skrommel »

Phoenix232

  • Supporting Member
  • Joined in 2017
  • **
  • default avatar
  • Posts: 9
    • View Profile
    • Donate to Member
Re: IDEA: Muting focused program with a key press
« Reply #9 on: July 25, 2017, 03:06 PM »
Could it be the tooltip? What game are you running?

:) Yes! It was the tooltip. Try the latest version.

Yes! It works perfectly now! With all the games and programs I tested. Thank you very much!  :P