; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) ; ;^!D:: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" "%1%" "%2%" ; Requires v1.0.92.01+ ExitApp } if 1 = { ;MsgBox, 16, tortoisesvn install err, name execute file ;Exit 0 ;exe_path=Epson_EP-880A_Series_JA_10_Web.EXE exe_path=\\Nas-27-59-fd\sys\driver_manual\电脑外围配件\print\Epson_EP-880A_Series_JA_10_Web.EXE } else{ exe_path=%1% } SplitPath, exe_path, exe_file, exe_dir if exe_dir = { exe_dir=%A_ScriptDir% } ;run,%comspec% /c "%exe_dir%\%exe_file%" ;;driver_path=\\Nas-48-71-3b\sys\driver_manual\电脑\x230\win10 title=Install Navi [EP-880A Series] title2=MyEPSON Portal title3=Epson Customer Research Participation 安装程序 title4=Epson Event Manager title5=Epson Eula goto, Complete1 WinWait, %title%, , 30 WinActivate,%title% SetTitleMatchMode 1 include_txt=License Agreement ;ControlCheck(title,"I agree by the contents",include_txt) cmds := Object() idx :=0 cmds[++idx] := [ 2000, "ControlCheck", title, "I agree by the contents" , include_txt] cmds[++idx] := [ 100, "WinWaitAndClikButton2", , "Next" ,1, include_txt] cmds[++idx] := [ 100, "WinWaitAndClikButton2", , "Next" ,1, "Software Installation Options" ] do_all_commands( cmds ) title6=ahk_class #32770 /* The following product(s) are found on the network. Select the product you want to use and click [Next]. If the Printer you want to use is not displayed, check if it is turned on. Printer List Movie Update Close Next */ cmds := Object() idx :=0 include_txt=The following product(s) are found on the network. Select the product you want to use and click [Next]. If the Printer you want to use is not displayed, check if it is turned on. WinWait, %title6%,%include_txt%, 300 WinGetPos, wX, wY, wW, wH, %title6%,%include_txt% wW //=2 wH //=2 wX += wW wY += wH /* ____________________________________________________________________ __0000______0000_____000____00000000______000______0000___0000000___ _00___0____0___00__00___0___00_____00___00___0____00__00__00_____0__ _0____00__00____0__00___00__00______0___00___00__00____0__00_____00_ ______00__00____0__0_____0__00______00__0_____0__0_____0__00_____00_ ______0____0___00__0_____0__00______00__0_____0_______00__00_____0__ ____000_____0000___00___00__00______00__00___00_______00__00000000__ ______00__00___00__00___00__00______00__00___00______00___00_____00_ _______0__00____00__0000_0__00______00___0000_0_____00____00_____00_ _______0__0_____00_______0__00______00________0___000_____00_____00_ _0_____0__00____00______00__00______0________00___0_______00_____00_ _00___00__00___00__00___0___00_____00___00___0___00_______00_____00_ __00000_____0000____0000____0000000______0000____0000000__0000000___ ____________________________________________________________________ ____________________________________________________________________ __0000______0000_____000____00000000______000______0000___0000000___ _00___0____0___00__00___0___00_____00___00___0____00__00__00_____0__ _0____00__00____0__00___00__00______0___00___00__00____0__00_____00_ ______00__00____0__0_____0__00______00__0_____0__0_____0__00_____00_ ______0____0___00__0_____0__00______00__0_____0_______00__00_____0__ ____000_____0000___00___00__00______00__00___00_______00__00000000__ ______00__00___00__00___00__00______00__00___00______00___00_____00_ _______0__00____00__0000_0__00______00___0000_0_____00____00_____00_ _______0__0_____00_______0__00______00________0___000_____00_____00_ _0_____0__00____00______00__00______0________00___0_______00_____00_ _00___00__00___00__00___0___00_____00___00___0___00_______00_____00_ __00000_____0000____0000____0000000______0000____0000000__0000000___ ____________________________________________________________________ 00000000000000000000000000000000000000000000000000000000000000000000 00____000000____00000___0000________000000___000000____000________00 0__000__000__00__00__000__00__00000__000__000__000__00__00__00000__0 0__000__00__0000_00__000__00__000000__00__000__00__0000_00__00000__0 000000__00__0000_00__0000_00__000000__00__0000_00__0000_00__00000__0 000000_0000__00__00_00000_00__000000__00_00000_0000000__00__00000_00 0000___00000____000__000___0__000000__00__000___000000__00________00 000000__00__000__00__000___0__000000__00__000___00000__000__00000__0 0000000_00__0000__00____0_00__000000__000____0_00000__0000__00000__0 0000000__0__0000__0000000_00__000000__00000000_000___00000__00000__0 0__0000_00__0000__000000__00__000000__0000000__000__000000__00000__0 0__000__00__000__00__000_000__00000__000__000_000__0000000__00000__0 00_____00000____0000____0000________00000____0000_______00________00 00000000000000000000000000000000000000000000000000000000000000000000 */ idx :=0 cmds := Object() Text1:="|<389D92B88DB7_1>*141$68.000000000003kD1kzkC1szVW4NWA6AEnA4En2Mn0X6MH1UAkY4kAUY4kM24N1A3883A43UwMn0n60nz0AlaAkAlUMkM1AAxA37cAA60G30H0k2C31Y4kkAk81W0kNXANWA6AFUA6DUwD3y1sTny000000000002" Text2:="|<389D92B88DB7_2>*133$68.000000000003kD1kzkC1szVW4NWA6AEnA4En2Mn0X6MH1UAkY4kAUY4kM24N1A3883A43UwMn0n60nz0AlaAkAlUMkM1AAxA37cAA60G30H0k2C31Y4kkAk81W0kNXANWA6AFUA6DUwD3y1sTny000000000002" Text3:="|<389D92B88DB7_3>*187$68.zzzzzzzzzzzwDkyD0Dly70CQtaQntnbAntbAxbAzAtbgyTnDNvDnDNvDbxtaynwrrwnvwT3b4zAszA0znCNlDnCDbDbynn2nwsLnntzYwzgzDxlwyNvDDnDnyQzDaQnaRntniTntkT3kw0y7UA0zzzzzzzzzzzy" cmds[++idx] := [ 0 , 100, WinTitle, Text1 , "389D92B88DB7_1",1,3] cmds[++idx] := [ 1 , 100, WinTitle, Text2 , "389D92B88DB7_2",1,3] cmds[++idx] := [ 2 , 100, WinTitle, Text3 , "389D92B88DB7_3",3,3] ret := FindImgTextAndClick(cmds, wX, wY, wW, wH) /* _________________________________ _00_____00___________________0___ _000____00__________________00___ _000____00__________________00___ _00_0___00____0000___0___000000__ _00_0___00___0___00__00_00__00___ _00__0__00__00____0___0_0___00___ _00__00_00__0_____0___000___00___ _00___0_00__0000000____0____00___ _00___0000__0_________000___00___ _00____000__00____0___0_00__00___ _00____000__00___00__0___0__00___ _00_____00____0000__00___00__00__ _________________________________ 000000000000000000000000000000000 0__00000__000000000000000000__000 0___0000__000000000000000000__000 0___0000__000000000000000000__000 0____000__000_____00__000______00 0__0__00__00__000__00__0__00__000 0__00_00__00__000__000___000__000 0__00__0__00_00000__00___000__000 0__000_0__0_________000__000__000 0__000____00_000000000___000__000 0__0000___00__0000_00__0__00__000 0__0000___00__000__00__00_00__000 0__00000__000_____00__000__0___00 000000000000000000000000000000000 */ idx :=0 cmds := Object() Text1:="|*127$33.zzzzzwyTzzbXnzzwwSTzzbVnUnUQaNn9banCQQwmPtXbbG0CQwsPzXbbXDNAwwNnBbbnUnYTzzzzzU" Text2:="|*120$33.0000031U008QA0033VU00MOAD4TXFWAqMNAkWX3BY4QMMgzV337Y0QMMQkWn33aAWMMADANU00000U" cmds[++idx] := [ 0 , 1000, WinTitle, Text1 , "Next_1",1,3] cmds[++idx] := [ 1 , 100, WinTitle, Text2 , "Next_2",1,3] ret := FindImgTextAndClick(cmds, wX, wY, wW, wH) /* Setup Complete Next License Agreement System Check Connection Setting Additional Installation Installation Setup Complete Start Setup Finish The software installation and network setup have been completed successfully. Printer is set as below. Printer name Port IP Address MAC Address :EP-880A Series(Network) :EPB88DB7:EP-880A SERIES :192.168.1.21 :389D92B88DB7 */ Complete1: include_txt=Setup Complete WinWait, %title%,%include_txt% , 300 cmds := Object() idx :=0 /* cmds[++idx] := [ 100, "WinWaitAndClikButton2", title2, "确定" ,1, "最新の状態に更新します。"] ;"Button1" cmds[++idx] := [ 1000, "ControlCheck", title, "Wi-Fi Connection" , "Connecting your Printer"] ; cmds[++idx] := [ 100, "WinWaitAndClikButton2", , "Next" ,1, "Connecting your Printer" ] */ /* Setup Complete Next License Agreement System Check Connection Setting Additional Installation Installation Setup Complete Start Setup Finish The software installation and network setup have been completed successfully. Printer is set as below. Printer name Port IP Address MAC Address :EP-880A Series(Network) :EPB88DB7:EP-880A SERIES :192.168.1.21 :389D92B88DB7 */ cmds[++idx] := [ 2000, "WinWaitAndClikButton2", title , "Next" ,1, "Setup Complete" ] /* Print Test Page Back Next License Agreement System Check Connection Setting Additional Installation Installation Setup Complete Start Setup Finish Click [Print Test Page] to ensure the software installation and Printer's setup have been completed. Print Test Page */ cmds[++idx] := [ 500, "WinWaitAndClikButton2", , "Next" ,1, "Print Test Page" ] do_all_commands( cmds ) /* Install application software EP-880A Series(Network) Essential Product Updates List1 Other useful software Total : 33.82 MB Exit Install 3 item(s) License Agreement System Check Connection Setting Additional Installation Installation Setup Complete Start Setup Finish */ ;;cmds[++idx] := [ 500, "WinWaitAndClikButton2", title , "Install" ,1, "Install application software" ] sleep,2000 include_txt := "Install application software" ControlFocus, Install,%title%,%include_txt% Sleep,200 SetControlDelay, -1 ;MsgBox,text-%Button%:%WinTitle%:%WinText% ControlClick,Install,%title%,%include_txt%,,,NA cmds := Object() idx :=0 /* 下一步 取消 详细... Epson Customer Research Participation 调查表 Model : EP-880A Series Serial ID : X44R100584 Contents 家庭使用 在家办公使用 家庭及在家办公使用 企业使用 1 人,只有您自己 2 到 5 人 6 到 10 人 11 到 20 人 超过 21 人 请回答以下问题。 1. 此打印机的主要用途是什么? 2. 此打印机供多少人使用? */ cmds[++idx] := [ 3000, "ControlCheck", title3, "家庭使用" , "下一步"] cmds[++idx] := [ 3000, "ControlCheck", , "1 人,只有您自己" , "下一步"] cmds[++idx] := [ 500, "WinWaitAndClikButton2", , "下一步" ,7, "家庭使用" ] /* 下一步 返回 详细... Epson Customer Research Participation 调查表 Model : EP-880A Series Serial ID : X44R100584 Contents 电子邮件、文本或电脑文件 照片 网页 其他 请回答以下问题。 3. 此打印机主要打印什么内容? 2/2 */ cmds[++idx] := [ 3000, "ControlCheck", , "其他" , "电子邮件、文本或电脑文件"] cmds[++idx] := [ 500, "WinWaitAndClikButton2", , "下一步" ,7, "电子邮件、文本或电脑文件" ] /* 安装 返回 详细... Epson Customer Research Participation 安装程序 Contents 要注册的打印机 Model : EP-880A Series Serial ID : X44R100584 点击"安装"以完成设置。 */ cmds[++idx] := [ 500, "WinWaitAndClikButton2", , "安装" ,1, "安装" ] /* 确定 取消 プリンターの追加・削除・変更が行われました。 MyEPSON Portalを再起動する必要があります。 再起動しますか。 */ cmds[++idx] := [ 2000, "WinWaitAndClikButton2", title2, "取消" ,1, "确定"] /* Epson Event Manager 安装程序 完成(&F) 取消 上一步(&B) 单击“完成”按钮以退出安装向导。 允许通信通过 Windows 防火墙 */ cmds[++idx] := [ 2000, "WinWaitAndClikButton2", title4, "完成" ,1, "Epson Event Manager 安装程序"] /* 请仔细阅读以下许可协议。 语言 : 中文(简体) (Chinese (Simplified)) 同意 不同意 OK */ cmds[++idx] := [ 500, "ControlCheck", title5, "同意" , "请仔细阅读以下许可协议。"] cmds[++idx] := [ 500, "WinWaitAndClikButton2", title5, "OK" ,1, "请仔细阅读以下许可协议。"] /* 确定 The installation was successful. */ cmds[++idx] := [ 500, "WinWaitAndClikButton2", title, "确定" ,1, "确定"] /* Install application software EP-880A Series(Network) Essential Product Updates List1 Other useful software Auto update settings Total : - MB Exit Install 0 item(s) License Agreement System Check Connection Setting Additional Installation Installation Setup Complete Start Setup Finish */ cmds[++idx] := [ 500, "WinWaitAndClikButton2", title, "Exit" ,1, "Install application software"] /* Connection Setup and Installation Complete Finish License Agreement System Check Connection Setting Additional Installation Installation Setup Complete Start Setup Finish Connection setup and software installation have been completed. */ cmds[++idx] := [ 500, "WinWaitAndClikButton2", title, "Finish" ,1, "Connection Setup and Installation Complete"] exit 0 #include %A_ScriptDir%\BUTTON_LIB.ahk