Public Const VK_ESCAPE = &H1B ' 代表Esc键 Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
' 功能:判断用户是否按下某一个键 Public Function CheckKey(lngKey As Long) As Boolean If GetAsyncKeyState(lngKey) Then CheckKey = True Else CheckKey = False End If End Function