首先,电脑屏幕分辨率调整为1920*1080,然后下载按键精灵,新建空白脚本,输入以下代码
====================以下是代码==========================
Do
intFX = 0
intJX = 0
intKX = 0
intDX = 0
F1 = 0
D1 = 0
J1 = 0
K1 = 0
Delay 30
FindColorEx 865,119,888,132,"3951B1",1,0.9,intFX,intFY
If intFX > 0 Then
FindColorEx 944,232,945,233,"F9FDFF",0,0.7,F1,intY
If F1 > 0 Then
KeyPress "D", 1
Else
KeyPress "F", 1
End If
End If
Delay 30
FindColorEx 865,119,888,132,"6B6374",1,0.9,intJX,intJY
If intJX > 0 Then
FindColorEx 944,232,945,233,"F9FDFF",0,0.7,J1,intY
If J1 > 0 Then
KeyPress "D", 1
Else
KeyPress "J", 1
End If
End If
Delay 30
FindColorEx 865,119,888,132,"4F8A83",1,0.9,intKX,intKY
If intKX > 0 Then
FindColorEx 944,232,945,233,"F9FDFF",0,0.7,K1,intY
If K1 > 0
KeyPress "D", 1
Else
KeyPress "K", 1
End If
End If
Delay 30
FindColorEx 865,119,888,132,"4580A2",1,0.9,intDX,intDY
If intDX > 0 Then
FindColorEx 944,232,945,233,"F9FDFF",0,0.7,D1,intY
If D1 > 0 Then
KeyPress "F", 1
Else
KeyPress "D", 1
End If
End If
Loop
========================以上是代码=========================
保存后允许,然后点开始就不用管了。