展开全部
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_KEYDOWN = &H100 '按下
Private Const WM_KEYUP = &H101 '释放
Private Const Key_Alt = 18
Private Sub Alt(hwnd As Long)
SendMessage hwnd, WM_KEYDOWN, Key_Alt, 0
End Sub
'Alt这个过程可以实现alt键在其上按下
望采纳,谢谢
Private Const WM_KEYDOWN = &H100 '按下
Private Const WM_KEYUP = &H101 '释放
Private Const Key_Alt = 18
Private Sub Alt(hwnd As Long)
SendMessage hwnd, WM_KEYDOWN, Key_Alt, 0
End Sub
'Alt这个过程可以实现alt键在其上按下
望采纳,谢谢
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询