📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "开始"
ClientHeight = 3705
ClientLeft = 60
ClientTop = 450
ClientWidth = 3705
LinkTopic = "Form1"
ScaleHeight = 3705
ScaleWidth = 3705
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "停止气死 nProtect"
Height = 1695
Left = 120
TabIndex = 1
Top = 1920
Width = 3495
End
Begin VB.CommandButton Command1
Caption = "开始气死 nProtect"
Height = 1695
Left = 120
TabIndex = 0
Top = 120
Width = 3495
End
Begin VB.Timer Timer1
Left = 1575
Top = 1800
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End Sub
Private Sub Form_Load()
If InitializeWinIo = False Then
'用InitializeWinIo函数加载驱动程序,如果成功会返回true,否则返回false
MsgBox "驱动程序加载失败!"
Unload Me
Else
Timer1.Interval = 3000
Timer1.Enabled = False
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
ShutdownWinIo '程序结束时记得用ShutdownWinIo函数卸载驱动程序
End Sub
Private Sub Timer1_Timer()
MyKeyDown VK_1
MyKeyUp VK_1 '模拟按下并释放A键
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -