按键精灵 反应慢为何 5
Dimenvi,状态检测状态ID=BeginThread(检测状态)按键ID=BeginThread(按键)键ID=BeginThread(键)i=0Dokey=Wait...
Dimenv i, 状态
检测状态ID = BeginThread(检测状态)
按键ID = BeginThread(按键)
键ID = BeginThread(键)
i = 0
Do
key = WaitKey
i = i + 1
If i > 1000 Then
i = 0
End If
Loop
Sub 检测状态()
k1 = 0
k2 = 0
Do
k1 = i
Delay 2
If k1 = i Then
k2 = k2 + 1
If k2 > 20 Then
状态 = "弹起状态"
End If
Else
k2 = 0
Delay 50
状态 = "按下状态"
End If
Loop
End Sub
Sub 按键()
Do
If 状态 = "按下状态" Then
If GetLastKey() = 87 Then
MoveTo 164, 508
Delay 20
LeftClick 1
End If
End If
Loop
End Sub
Sub 键()
Do
If 状态 = "按下状态" Then
If GetLastKey() = 83 Then
MoveTo 164, 608
Delay 20
LeftClick 1
End If
End If
Loop
End Sub
按w 再按 s 切换有延时为什么 怎么解决 展开
检测状态ID = BeginThread(检测状态)
按键ID = BeginThread(按键)
键ID = BeginThread(键)
i = 0
Do
key = WaitKey
i = i + 1
If i > 1000 Then
i = 0
End If
Loop
Sub 检测状态()
k1 = 0
k2 = 0
Do
k1 = i
Delay 2
If k1 = i Then
k2 = k2 + 1
If k2 > 20 Then
状态 = "弹起状态"
End If
Else
k2 = 0
Delay 50
状态 = "按下状态"
End If
Loop
End Sub
Sub 按键()
Do
If 状态 = "按下状态" Then
If GetLastKey() = 87 Then
MoveTo 164, 508
Delay 20
LeftClick 1
End If
End If
Loop
End Sub
Sub 键()
Do
If 状态 = "按下状态" Then
If GetLastKey() = 83 Then
MoveTo 164, 608
Delay 20
LeftClick 1
End If
End If
Loop
End Sub
按w 再按 s 切换有延时为什么 怎么解决 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询