找回密码
 加入
搜索
查看: 2021|回复: 3

本机测试脚本和编译后的文件都正常,换台电脑就不会自动安装,救命啊!

[复制链接]
发表于 2008-12-13 14:47:28 | 显示全部楼层 |阅读模式
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Gamefast -1.2", 194, 66, -1, -1, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS))
GUICtrlCreateLabel("安装程序解压中,请稍候...", 24, 24, -1, -1)
FileInstall("C:\Documents and Settings\xdwb\桌面\Gamefast\Gamefast-1.2.exe",@TempDir & "\Gamefast-1.2.exe",1)
GUIDelete($Form1)
Run(@TempDir & "\Gamefast-1.2.exe")
WinWait("Gamefast -1.2 安装", "t seems the package Gamefast (Gamefast) is already installed.")
ControlClick("Gamefast -1.2 安装", "t seems the package Gamefast (Gamefast) is already installed.", "Button1")
WinWait("Gamefast -1.2 安装", "欢迎使用 Gamefast安装向导")
ControlClick("Gamefast -1.2 安装", "欢迎使用 Gamefast安装向导", "Button2")
WinWait("Gamefast -1.2 安装", "如果您接受协议中的条款")
ControlClick("Gamefast -1.2 安装", "如果您接受协议中的条款", "Button2")
WinWait("Gamefast -1.2 安装", "")
ControlClick("Gamefast -1.2 安装", "", "Button2")
WinWait("硬件安装", "")
ControlClick("硬件安装", "", "Button1")
WinWait("Gamefast -1.2 安装", "安装完成")
ControlClick("Gamefast -1.2 安装", "安装完成", "Button2")
WinWait("Gamefast -1.2 安装", "正在完成“Gamefast -1.2”安装向导")
ControlClick("Gamefast -1.2 安装", "正在完成“Gamefast -1.2”安装向导", "Button2")
FileDelete(@TempDir & "\Gamefast-1.2.exe")

网游加速器的全自动安装代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2008-12-13 14:55:00 | 显示全部楼层
换台电脑执行编译后的.exe文件 只弹出来个安装界面图,但是就不会自动下一步。。。
发表于 2008-12-13 15:01:40 | 显示全部楼层
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Gamefast -1.2", 194, 66, -1, -1, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS))
GUICtrlCreateLabel("安装程序解压中,请稍候...", 24, 24, -1, -1)
FileInstall("C:\Documents and Settings\xdwb\桌面\Gamefast\Gamefast-1.2.exe",@TempDir & "\Gamefast-1.2.exe",1)
GUIDelete($Form1)
Run(@TempDir & "\Gamefast-1.2.exe")
WinWait("Gamefast -1.2 安装", "欢迎使用 Gamefast安装向导")
ControlClick("Gamefast -1.2 安装", "欢迎使用 Gamefast安装向导", "Button1")
WinWait("Gamefast -1.2 安装", "欢迎使用 Gamefast安装向导")
ControlClick("Gamefast -1.2 安装", "欢迎使用 Gamefast安装向导", "Button2")
WinWait("Gamefast -1.2 安装", "如果您接受协议中的条款")
ControlClick("Gamefast -1.2 安装", "如果您接受协议中的条款", "Button2")
WinWait("Gamefast -1.2 安装", "")
ControlClick("Gamefast -1.2 安装", "", "Button2")
WinWait("硬件安装", "")
ControlClick("硬件安装", "", "Button1")
WinWait("Gamefast -1.2 安装", "安装完成")
ControlClick("Gamefast -1.2 安装", "安装完成", "Button2")
WinWait("Gamefast -1.2 安装", "正在完成“Gamefast -1.2”安装向导")
ControlClick("Gamefast -1.2 安装", "正在完成“Gamefast -1.2”安装向导", "Button2")
FileDelete(@TempDir & "\Gamefast-1.2.exe")
发表于 2008-12-13 18:23:13 | 显示全部楼层
FileInstall("C:\Documents and Settings\xdwb\改成
FileInstall("C:\Documents and Settings\" & @username & "\...
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-15 20:32 , Processed in 0.079140 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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