中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 22:45
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Please use batch processing or other simple methods to cancel the system volume mute
Printable Version  2,190 / 7
Floor1 zeroten Posted 2009-11-29 13:05
初级用户 Posts 19 Credits 37
Please clarify your request. Are you asking for a translation of the Chinese text you provided? If so, here is the translation:

Seek to use batch processing or other simple methods to cancel the volume mute, QQ Player mute, make them not mute, and also adjust the volume? What are the parameters of sndvol32.exe?
Floor2 HAT Posted 2009-11-29 13:28
版主 Posts 5,017 Credits 9,023
Floor3 newxso Posted 2009-11-29 19:09
初级用户 Posts 101 Credits 73 From GZ
```
Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Sendkeys "…" 'First mute, cancel it again
```



[ Last edited by newxso on 2009-12-4 at 20:02 ]
Floor4 zeroten Posted 2009-12-04 19:31
初级用户 Posts 19 Credits 37
Thanks to the two upstairs for helping. By the way, I want to ask, can it be achieved only with bat without using third-party tools and vbs?
Floor5 zeroten Posted 2009-12-04 19:34
初级用户 Posts 19 Credits 37
```
Originally posted by newxso at 2009-11-29 07:09 PM:
Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.Sendkeys "…" 'First mute, cancel it the second time



What does this not understand? Where does the code end?
```
Floor6 zeroten Posted 2009-12-04 20:37
初级用户 Posts 19 Credits 37
Originally posted by newxso at 2009-11-29 07:09 PM:



How to cancel the mute no matter what, to prevent the situation where it was not muted originally but becomes muted after execution
Floor7 slore Posted 2009-12-05 18:33
铂金会员 Posts 2,478 Credits 5,212
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings]
"MasterVolume"=hex:00,00
"MasterVolume"=hex:00,80
"HeadphoneVolume"=hex:04,04
"HeadphoneVolume"=hex:04,84
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_27DE&SUBSYS_0C82105B&REV_01#3&2411E6FE&0&F2#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 0\Controls\ 1]
"Channel 0"=dword:00000000
"Channel 0"=dword:00000001
"Channel 1"=dword:00000000
"Channel 1"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings]
"MasterVolume"=hex:00,00
"MasterVolume"=hex:00,80
"HeadphoneVolume"=hex:04,04
"HeadphoneVolume"=hex:04,84
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}\##?#PCI#VEN_8086&DEV_27DE&SUBSYS_0C82105B&REV_01#3&2411E6FE&0&F2#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\#Wave\Device Parameters\Mixer\ 0\Controls\ 1]
"Channel 0"=dword:00000000
"Channel 0"=dword:00000001
"Channel 1"=dword:00000000
"Channel 1"=dword:00000001


Muting or not muting will change here. Some keys (such as those under DEVICE) are related to audio devices and may be different.

Focus on
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings]
above.


MasterVolume is 2 bytes
If they are the same, it means no mute. If the latter minus the former = 80 (hexadecimal), it means muted. Specifically, if it is 1f, 9f (the difference is also H80), it means the master volume is adjusted to the lowest. It is unknown whether it is muted or not when it is 1f, 9f.

If the master volume is at the lowest and mute is canceled, there should be nothing wrong.

If you must do it completely, you need to look at those items related to audio devices. This... To get the hardware ID, etc., the processing is cumbersome. It is better to use a small third-party tool
Floor8 xuantian Posted 2009-12-07 16:55
高级用户 Posts 282 Credits 587
Just use the remote control or keyboard shortcuts.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023