Unmute Windows sound using WScript.Shell

2 ビュー (過去 30 日間)
Patrice Tscherrig
Patrice Tscherrig 2012 年 8 月 8 日
How can I unmute the sound in Windows using Matlab?
In VBA this can be done using elegantly:
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys (Chr(&HAD))
But in Matlab I faild to use the method SendKeys to the method:
f=actxserver('WScript.Shell')
The post of Yair Altman: http://www.mathworks.com/matlabcentral/fileexchange/25584-soundvolume-set-or-get-the-system-speaker-sound-volume does unfortunately not work either. Any help on this?
Patrice
  4 件のコメント
Friedrich
Friedrich 2012 年 8 月 10 日
Youe posted code doesn't work for me in VBA (Excel 2010, Win 7). And it also doesnt work in VBS. Are you sure that this code works on Win 7 and XP the same way?
Jan
Jan 2012 年 8 月 19 日
"Does not work" is not sufficient description of the problem with Yair's Java tool.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by