关于keybd_event
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal Scan As Byte, ByVal dwFlags As integer, ByVal dwExtraInfo As integer) keybd_event(50,0, 0, 0)'按下1 keybd_event(50,0,KEYEVENTF_KEYUP,0)'松开1 这里的KEYEVENTF_KEYUP会出错,说什么受保护因什么而不能使用,为什么啊? KEYEVENTF_KEYUP需要声明??