lugin.Window.MousePoint()
s = Plugin.Window.GetWindowRect(Hwnd)

//判断上下左右特征点的相对坐标
px=array(12,12,15,-15)
py=array(23,-23,11,11)

k=array("Up","Down","Left","Right")

//获得窗口左上、右下角坐标
pt=split(s,"|",-1,1)
zx=cint(pt(0))
zy=cint(pt(1))
yx=cint(pt(2))
yy=cint(pt(3))

If yy-zy<>400 or yx-zx<>550 then
    MsgBox "请将鼠标移动到游戏窗口并重新运行脚本!"
    EndScript
End if

Rem start

//第一个箭头中心坐标
posx=zx+120
posy=zy+270

//判断4个箭头
For i=1 to 4
//判断每个箭头的4种可能形态
    For j=0 to 3
        IfColor posx+px(j),posy+py(j),"3399FF",0 Then
            KeyPress k(j), 1
            Goto over
            End if
       next     
       Rem over

//移至下一个箭头的中心点 
    posx=posx+100    
Next

//判断按下SPACE的时机
While true
IfColor zx+346,zy+169,"0C53C0",1 then
KeyPress "Space", 1
Goto o2
End if
Wend

Rem o2
//判断是否开始新的一轮
While true
IfColor zx+430,zy+270,"3399FF",0 then
Goto start
End if
Wend