|
Run("ClientSetup.exe")
WinWait ("PubwinClient - InstallShield Wizard" , "警告:本程序受版权法和国际条约的保护。")
ControlClick ("PubwinClient - InstallShield Wizard" , "警告:本程序受版权法和国际条约的保护。","Button1")
WinWait ("PubwinClient - InstallShield Wizard" , " Pubwin 2007网吧经营计费管理系统软件")
ControlClick ("PubwinClient - InstallShield Wizard" , " Pubwin 2007网吧经营计费管理系统软件","Button5")
ControlClick ("PubwinClient - InstallShield Wizard" , " Pubwin 2007网吧经营计费管理系统软件","Button2")
WinWait ("PubwinClient - InstallShield Wizard" , "选择目的地位置")
ControlClick ("PubwinClient - InstallShield Wizard" , "选择目的地位置","Button1")
WinWait ("PubwinClient - InstallShield Wizard" , "迅闪以及客户端配置信息")
ControlSetText ("PubwinClient - InstallShield Wizard" , "迅闪以及客户端配置信息","Edit3","192.168.1.200")
ControlClick ("PubwinClient - InstallShield Wizard" , "迅闪以及客户端配置信息","Button2")
WinWait ("PubwinClient - InstallShield Wizard" , "向导已就绪,可以开始安装了")
ControlClick ("PubwinClient - InstallShield Wizard" , "向导已就绪,可以开始安装了","Button1")
WinWait ("PubwinClient - InstallShield Wizard" , "安装 PubwinClient 完成")
ControlClick ("PubwinClient - InstallShield Wizard" , "安装 PubwinClient 完成","Button1")
ControlClick ("PubwinClient - InstallShield Wizard" , "安装 PubwinClient 完成","Button2")
ControlClick ("PubwinClient - InstallShield Wizard" , "安装 PubwinClient 完成","Button4")
这个是已经写好的脚本~
可是这个要该IP就得重新修改脚本
ControlSetText ("PubwinClient - InstallShield Wizard" , "迅闪以及客户端配置信息","Edit3","192.168.1.200")
但是我如果想从配置文件里面读取IP,该怎么写呢?
serverip.ini
[server]
IP=192.168.0.200 |
|