找回密码
 加入
搜索
查看: 2479|回复: 1

[原创] Notepad++V5.4.5 自动安装脚本

[复制链接]
发表于 2010-2-23 13:54:27 | 显示全部楼层 |阅读模式
Run("npp.5.4.5.Installer.exe")
WinWaitActive("Installer Language","Please select a language.")
ControlClick("Installer Language","Please select a language.","[class:Button;INSTANCE:1]")

WinWaitActive("Notepad++ v5.4.5 Setup","Welcome to the Notepad++ v5.4.5 Setup Wizard")
ControlClick("Notepad++ v5.4.5 Setup","Welcome to the Notepad++ v5.4.5 Setup Wizard","[class:Button;INSTANCE:2]")

WinWaitActive("Notepad++ v5.4.5 Setup","License Agreement")
ControlClick("Notepad++ v5.4.5 Setup","License Agreement","[class:Button;INSTANCE:2]")

WinWaitActive("Notepad++ v5.4.5 Setup","Choose Install Location")
ControlClick("Notepad++ v5.4.5 Setup","Choose Install Location","[class:Button;INSTANCE:2]")

WinWaitActive("Notepad++ v5.4.5 Setup","Choose Components")
ControlClick("Notepad++ v5.4.5 Setup","Choose Components","[class:Button;INSTANCE:2]")

WinWaitActive("Notepad++ v5.4.5 Setup","Completing the Notepad++ v5.4.5 Setup Wizard")
ControlClick("Notepad++ v5.4.5 Setup","Completing the Notepad++ v5.4.5 Setup Wizard","[class:Button;INSTANCE:2]")

WinWaitActive("Notepad++ update","An update package is available, do you want to download it?")
ControlClick("Notepad++ update","An update package is available, do you want to download it?","[class:Button;INSTANCE:2]")

WinWaitActive("E:\Program Files (x86)\Notepad++\change.log - Notepad++")
ProcessClose("Notepad++.exe")
发表于 2010-2-23 15:40:52 | 显示全部楼层
抢个沙发坐坐。先回复,再看贴,
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-24 04:16 , Processed in 0.110143 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表