BeginThread A
Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer
Sub A()
SetSimMode 1
Hwndjx3 = Plugin.Window.Find("KGWin32App", 0)'获取窗口句柄
Rem 循环
Hwnd = Plugin.Window.MousePoint()'获取窗口句柄
If Hwndjx3 <> Hwnd Then
Goto 循环
End If
If GetAsyncKeyState(160) < 0 Then
Goto 循环
End If
If GetAsyncKeyState(164) < 0 Then
Goto 循环
End If
KeyPress "F10", 1
Delay 100
Goto 循环
End Sub
SetSimMode 1
Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer
Hwndjx3 = Plugin.Window.Find("KGWin32App", 0)'获取窗口句柄
Rem 循环
Hwnd = Plugin.Window.MousePoint()'获取窗口句柄
If Hwndjx3 <> Hwnd Then
Goto 循环
End If
If GetAsyncKeyState(160) < 0 Then
Goto 循环
End If
If GetAsyncKeyState(164) < 0 Then
Goto 循环
End If
KeyPress "F8", 1 //F10攻击,F8是拾取
Delay 50
Goto 循环