Option Explicit
Private Sub Form_Load()
Timer1.Interval = 1000
End Sub
Private Sub Timer1_Timer()
Static Count As Integer
Count = IIf(Count < 120, Count + 1, 120)
If Count = 12 Then
Timer1.Enabled = False
SendKeys "%{F2}", True
Unload Me
End If
End Sub
请问为什么我这个代码在开机启动时就会报17不能执行所需的操作