声音怎么关掉
- 提问者网友:我是女神我骄傲
- 2021-08-11 14:57
- 五星知识达人网友:行路难
- 2021-08-11 15:40
进入社区,右下角,点“查看”(商场旁边),点“设置” ,桌面和社区音效,去勾。
- 1楼网友:像个废品
- 2021-08-11 16:28
- 2楼网友:封刀令
- 2021-08-11 16:22
把下面这代码复制进TXT,再把文档后缀
改为vbe即可实现静音切换 ++ -- 音量等。
Option Explicit Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" ( _ ByVal hwnd As Long, _ ByVal wMsg As Long, _ ByVal wParam As Long, _ ByVal lParam As Long) As Long Private Const WM_APPCOMMAND As Long = &H319 Private Const APPCOMMAND_VOLUME_UP As Long = 10 Private Const APPCOMMAND_VOLUME_DOWN As Long = 9 Private Const APPCOMMAND_VOLUME_MUTE As Long = 8 Private Sub Command1_Click() '音量增加 SendMessage Me.hwnd, WM_APPCOMMAND, &H30292, APPCOMMAND_VOLUME_UP * &H10000 End Sub Private Sub Command2_Click() '音量减少 SendMessage Me.hwnd, WM_APPCOMMAND, &H30292, APPCOMMAND_VOLUME_DOWN * &H10000 End Sub Private Sub Command3_Click() '静音 SendMessage Me.hwnd, WM_APPCOMMAND, &H200EB0, APPCOMMAND_VOLUME_MUTE * &H10000 End Sub