RT,最好能有个示例.
PS:不要告诉我用API XX函数,那个我早知道了
‘静音
Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const KEYEVENTF_KEYUP = &H2 '松开按键
const jingyin =173 '静音
private sub command1_click()
keybd_event jingyin, 0, 0, 0
keybd_event jingyin, 0, KEYEVENTF_KEYUP, 0 '模拟键按下和松开按键
end sub