![]() |
#2
lowxiong2013-04-26 16:17
|
Option Explicit
Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Const KEYEVENTF_KEYUP = &H2
Private Const KEYEVENTF_EXTENDEDKEY = &H1
Private Const VK_LWIN = &H5B '左WIN键
Private Const VK_RWIN = &H5C '右WIN键
Private Sub Form_Load()
keybd_event VK_LWIN, 0, KEYEVENTF_EXTENDEDKEY, 0 ' 按下
keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 ' 弹起
End Sub
高手们看看问题出在哪?