RT,最好能有个示例.
PS:不要告诉我用API XX函数,那个我早知道了
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
‘静音
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
谢了,那怎么屏蔽键盘呢?
我曾尝试过使用setwindowlong改变窗体默认的消息处理过程,但是没有成功
现在我还没别的办法 老兄,你不是在写病毒吧??(犯法吆)