插件不会,这个勉强凑合
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Form_Load()
Dim i As Integer
Dim n1 As Long, n2 As Long
Me.Show
While True
DoEvents
Sleep (150)
i = GetAsyncKeyState(vbKeyF6)
If i <> 0 Then
SendKeys "{F8}"
End If
Wend
End Sub
Private Sub Form_Unload(Cancel As Integer)
End
End Sub