文件仅24KB,免安装运行。
使用两种方法开启关闭。
1、快捷键F10即时运行;
2、鼠标点击按钮,延迟3秒后开始,方便调整点击位置。
注意时间间隔为毫秒。
窗体如下图,运行后定时器图标隐藏。
窗体代码
Private Sub Form_Load()
Timer1.Enabled = True
Timer1.Interval = 100
End Sub
Private Sub Timer1_Timer()
If GetAsyncKeyState(vbKeyF10) Then
If Command1.Caption = "OFF" Then
Command1.Caption = "ON"
Else
Command1.Caption = "OFF"
End If
End If
If Command1.Caption = "ON" And Text2.Text > 0 Then
Sleep Text1.Text
Call zjdj
End If
End Sub
Private Sub Command1_Click()
If Command1.Caption = "OFF" Then
Com