VBS dim i
//循环开始标记
Rem 开始
Delay 32
//找开始键
MoveTo 697,291
IfColor 697,291,c9e2f6,0
    LeftClick 1
EndIf 
//找上下左右
i = 0
Rem 找
While i < 9
    //空格
    IfColor 850,639,e0b27c,0
        IfColor 635,664,ffffff,0
            KeyPress 32,1
        EndIf 
    EndIf 
    //上
    IfColor i*64+377,673,a5f2fd,0
        IfColor i*64+389,673,a6f1fd,0
            IfColor i*64+383,687,3787b3,0
                KeyPress 38,1
                i = i + 1
                Goto 找
            EndIf 
        EndIf 
    EndIf 
    //下
    IfColor i*64+377,680,3787b3,0
        IfColor i*64+389,680,3787b3,0
            IfColor i*64+383,667,e8fcff,0
                KeyPress 40,1
                i = i + 1
                Goto 找
            EndIf 
        EndIf 
    EndIf 
    //左
    IfColor i*64+379,671,c1f6fe,0
        IfColor i*64+379,683,3787b3,0
            IfColor i*64+394,677,4ab6d7,0
                KeyPress 37,1
                i = i + 1
                Goto 找
            EndIf 
        EndIf 
    EndIf 
    //右
    IfColor i*64+387,671,c0f6fe,0
        IfColor i*64+387,682,3787b3,0
            IfColor i*64+373,677,4ab6d7,0
                KeyPress 39,1
                i = i + 1
                Goto 找
            EndIf 
        EndIf 
    EndIf 
    i = i + 1
EndWhile 
//空格
IfColor 850,639,e0b27c,0
    IfColor 635,664,ffffff,0
        KeyPress 32,1
    EndIf 
EndIf 
//找结束
IfColor 893,284,88ffff,0
    MoveTo 893,284
    LeftClick 1
    Delay 1000
EndIf 
Goto 开始
//循环结束的标记
Rem 结束