本帖最后由 jk1688 于 2013-1-13 19:28 编辑
Dim posx, posy
posx = 10
posy = 50
Hwnd = Plugin.Window.MousePoint()
//Call Plugin.Window.Move(Hwnd,10,50)
Call Plugin.bgkms6_10.SetAntiMode(0)
Delay 50
Call Plugin.bgkms6_10.FakeWindowState(hwnd, 1)
Delay 50
KMData = Plugin.bgkms6_10.KMTransform(hwnd, 1)
Delay 50
Dim tdelay,cnt
tdelay=1000
posx = 0//10+150
posy = 0//posy + 50
Call Plugin.bgkms6_10.LockKey(KMData)
Call Plugin.bgkms6_10.LockMouse(KMData)
Call Plugin.bgkms6_10.KeyDown(KMData, "4")
Delay 500
Call Plugin.bgkms6_10.KeyUp(KMData, "4")
Call Plugin.bgkms6_10.RightDown(KMData)
cnt=0
For 999999
Call Plugin.bgkms6_10.MoveTo(KMData, 532-posx,229-posy)
Delay tdelay
Call Plugin.bgkms6_10.MoveTo(KMData, 336-posx,269-posy)
Delay tdelay
Call Plugin.bgkms6_10.MoveTo(KMData, 229-posx,413-posy)
Delay tdelay
Call Plugin.bgkms6_10.MoveTo(KMData, 362-posx,437-posy)
Delay tdelay
Call Plugin.bgkms6_10.MoveTo(KMData, 454-posx,522-posy)
Delay tdelay
Call Plugin.bgkms6_10.MoveTo(KMData, 754-posx,542-posy)
Delay tdelay
Call Plugin.bgkms6_10.MoveTo(KMData, 848-posx,416-posy)
Delay tdelay
Call Plugin.bgkms6_10.MoveTo(KMData, 725-posx,267-posy)
Delay tdelay
cnt = cnt + 1
If cnt = 10 Then
cnt = 0
Call Plugin.bgkms6_10.KeyDown(KMData,"5")
Delay 500
Call Plugin.bgkms6_10.KeyUp(KMData, "5")
Delay 1000
Call Plugin.bgkms6_10.KeyDown(KMData, "4")
Delay 500
Call Plugin.bgkms6_10.KeyUp(KMData, "4")
End If
Next
Sub OnScriptExit()
Call Plugin.bgkms6_10.RightUp(KMData)
Call Plugin.bgkms6_10.UnlockMouse(KMData)
Call Plugin.bgkms6_10.UnlockKey(KMData)
Call Plugin.bgkms6_10.KMUntransform(KMData)
Call Plugin.bgkms6_10.RestoreWindowState(hwnd)
End Sub
需要361插件,快捷键设置,4为致命一击,5为生命之光 |