ibrahem Posted August 8, 2018 Share Posted August 8, 2018 how can i mute the sound of specific window only?? ...like this Link to comment Share on other sites More sharing options...
Deye Posted August 8, 2018 Share Posted August 8, 2018 (edited) $ProgramToMute = "chrome" $hWnd = WinGetHandle("Volume Mixer", "") $close =False If Not HWnd($hWnd) Then Run("sndvol.exe", "", @SW_HIDE) $hWnd = WinWaitActive("Volume Mixer") $close = True EndIf $i = 0 Do $i += 1 If StringInStr(ControlGetText($hWnd, "", "[CLASS:ToolbarWindow32; INSTANCE:" & $i & "]"), $ProgramToMute) Then ControlClick($hWnd, "", "ToolbarWindow32" & $i, "", 1) ExitLoop EndIf Until Not HWnd(ControlGetHandle($hWnd, "", "[CLASS:ToolbarWindow32; INSTANCE:" & $i & "]")) If $close Then WinClose($hWnd, "") Edited August 9, 2018 by Deye ibrahem 1 Link to comment Share on other sites More sharing options...
ibrahem Posted August 9, 2018 Author Share Posted August 9, 2018 thanks ...it works great ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now