【按键精灵】阿里国际站批量机译多语言产品

对按键精灵最早的认知是可以写一些外挂脚本,同样想要解决一些重复性高的工作,按键精灵也是不错的选择。
脚本没有写适配分辨率,使用者需要修改电脑屏幕分辨率,并重新抓图。

Rem 判断
//判断
Rem 未编辑
While 1
FindPic 0,0,1440,900,"Attachment:\未编辑.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
    Goto 开始
    Else
    MessageBox "启动失败呀"
End If
Wend
Rem 开始
While 1
FindPic 0,0,1440,900,"Attachment:\未编辑.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
        Delay 1000
KeyPress "Up", 20
Delay 800
KeyPress "Down", 7
Delay 1000
    Goto 编辑
Else
    Goto 翻页
End If
Wend
Rem 编辑
For 10
While 1
FindPic 0,0,1440,900,"Attachment:\多编辑.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx+5, inty+5
    LeftClick 1
        Goto 开始机译
Else
    Goto 翻页
End If
    Wend
Rem 翻页
    Delay 800
While 1
FindPic 0,0,1440,900,"Attachment:\下一页.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
    MoveTo intx, inty
            Delay 500
        LeftClick 1
            Delay 3000
        Goto 开始
Else
    KeyPress "Down", 5
            Delay 800
End If
    Wend
Rem 开始机译
While 1
FindPic 0,0,1440,900,"Attachment:\加载完成.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
        MoveTo intx, inty
        LeftClick 1
Goto 提交
Else
Delay 500
End If
    Wend
Rem 提交
KeyPress "Down", 100
Delay 1000
FindPic 0,0,1440,900,"Attachment:\多提交.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx+20, inty+38
    LeftClick 1
End If
    Rem 多提交完成
While 1
FindPic 0,0,1440,900,"Attachment:\多提交完成.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
            Delay 800
    Goto 提交完成
Else
    Delay 500
            Goto 翻译失败
End If
    Wend
    Rem 翻译失败
    While 1
    FindPic 0,0,1440,900,"Attachment:\标题超长.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
            KeyDown 17, 1
            KeyPress 87, 1
            KeyUp 17, 1
            KeyPress "Enter", 1
            Goto 结束
Else
        Delay 500
            Goto 在线失败
End If
Wend
    Rem 在线失败
//在线失败
    While 1
    FindPic 0,0,1440,900,"Attachment:\在线失败.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
        KeyDown 17, 1
            KeyPress 87, 1
            KeyUp 17, 1
            KeyPress "Enter", 1
            Goto 结束
        Else
        Goto 多提交完成
End If
Wend
Rem 提交完成
Delay 500
KeyDown 17, 1
KeyPress 87, 1
KeyUp 17, 1
    Rem 结束
    Delay 1000
    Next

附件:
按键精灵附件
抓图工具:
抓图工具
脚本是我一个基友教的,博客www.zhudc.com

发表评论

电子邮件地址不会被公开。