Board logo

标题: [系统相关] [已解决]win7 64系统,bat或者vba如何实现:右下角的音量静音? [打印本页]

作者: ygqiang    时间: 2012-10-7 23:34     标题: [已解决]win7 64系统,bat或者vba如何实现:右下角的音量静音?

win7 64系统,bat或者vba如何实现:右下角的音量静音?
  1. WScript.Sleep 2000
  2. Set WshShell = Wscript.CreateObject("Wscript.Shell")
  3. WshShell.Sendkeys "棶"  '减少音量
  4. WScript.Sleep 2000
  5. Set WshShell = Wscript.CreateObject("Wscript.Shell")
  6. WshShell.Sendkeys "棴"  '静音
复制代码
上面这2个vbs代码,都不能满足要求。


已经解决了:
  1. WScript.Sleep 2000
  2. Set ws = CreateObject("Wscript.Shell")
  3. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  4. WScript.Sleep 2000
  5. Set ws = CreateObject("Wscript.Shell")
  6. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  7. WScript.Sleep 2000
  8. Set ws = CreateObject("Wscript.Shell")
  9. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  10. WScript.Sleep 2000
  11. Set ws = CreateObject("Wscript.Shell")
  12. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  13. WScript.Sleep 2000
  14. Set ws = CreateObject("Wscript.Shell")
  15. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  16. WScript.Sleep 2000
  17. Set ws = CreateObject("Wscript.Shell")
  18. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  19. WScript.Sleep 2000
  20. Set ws = CreateObject("Wscript.Shell")
  21. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  22. WScript.Sleep 2000
  23. Set ws = CreateObject("Wscript.Shell")
  24. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  25. WScript.Sleep 2000
  26. Set ws = CreateObject("Wscript.Shell")
  27. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  28. WScript.Sleep 2000
  29. Set ws = CreateObject("Wscript.Shell")
  30. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  31. WScript.Sleep 2000
  32. Set ws = CreateObject("Wscript.Shell")
  33. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  34. WScript.Sleep 2000
  35. Set ws = CreateObject("Wscript.Shell")
  36. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  37. WScript.Sleep 2000
  38. Set ws = CreateObject("Wscript.Shell")
  39. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  40. WScript.Sleep 2000
  41. Set ws = CreateObject("Wscript.Shell")
  42. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
  43. WScript.Sleep 2000
  44. Set ws = CreateObject("Wscript.Shell")
  45. ws.run "cmd /c nircmd.exe mutesysvolume 1",vbhide
复制代码





欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2