这是以前写的,用最土的办法,当时只会这个#NoTrayIcon
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=Setup.ico
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Comment=自动安装UltraISO 9.3.0.2600多国语言版
#AutoIt3Wrapper_Res_Description=自动注册,并且在语言选择中文
#AutoIt3Wrapper_Res_Fileversion=2.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=kn007
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
If FileExists(@ScriptDir & "\UltraISO 9.3.0.2600_pe.exe") Then
Run(@ScriptDir & "\UltraISO 9.3.0.2600_pe.exe")
WinWaitActive("Setup")
Send("!n")
Send("!a")
Send("!n")
Send("D:\Program Files\UltraISO")
Send("!n")
Send("!y")
Send("!n")
Send("!n")
Send("!i")
WinWaitActive("Setup - UltraISO","Completing the UltraISO Setup Wizard")
Send("!f")
WinWaitActive("Welcome")
Send("{Tab}")
Send("{Enter}")
WinWaitActive("Registration")
Send("UW-Madison Executive Education")
Send("{Tab}")
Send("1519-E287-A828-A24A")
Send("{Enter}")
Send("{Enter}")
Sleep(1000)
Run("D:\Program Files\UltraISO\UltraISO.exe")
Sleep(1000)
WinWaitActive("UltraISO")
Send("!o")
Send("{Down}")
Send("{Right}")
Send("{Down}")
Send("{Down}")
Send("{Down}")
Send("{Down}")
Send("{Down}")
Send("{Enter}")
Sleep(1000)
WinWaitActive("UltraISO")
Send("!{F4}")
Sleep(500)
Run("D:\Program Files\UltraISO\UltraISO.exe")
MsgBox(4096, "The Setup Was Completed !", "kn007 All Rights Reserved ! E-Mail:kn007@126.com")
Sleep(100)
else
MsgBox(4096, "Warning !!! ", "Could Not Found The Setup File Here ! Please Check !")
Exit
Endif
再拿个这种方法的,建议楼主提供程序地址,大家帮你#NoTrayIcon
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=Setup.ico
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Comment=自动安装QQ2009Beta2简体中文版
#AutoIt3Wrapper_Res_Description=自动安装注册
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=kn007
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <ACN_String.au3>
If FileExists(@ScriptDir & "\QQ2009Beta2.exe") Then
Run(@ScriptDir & "\QQ2009Beta2.exe")
WinWait("腾讯QQ2009 安装向导")
WinActivate("腾讯QQ2009 安装向导")
WinWaitActive("腾讯QQ2009 安装向导")
ControlClick ("腾讯QQ2009 安装向导", "", "Button1")
ControlClick ("腾讯QQ2009 安装向导", "下一步(&N)", "Button3")
ControlClick ("腾讯QQ2009 安装向导", "", "Button6")
ControlClick ("腾讯QQ2009 安装向导", "", "Button12")
ControlClick ("腾讯QQ2009 安装向导", "下一步(&N)", "Button2")
ControlClick ("腾讯QQ2009 安装向导", "", "Button9")
ControlClick ("腾讯QQ2009 安装向导", "", "Button8")
ControlClick ("腾讯QQ2009 安装向导", "", "Button10")
ControlClick ("腾讯QQ2009 安装向导", "", "Button11")
ControlClick ("腾讯QQ2009 安装向导", "", "Button7")
ControlClick ("腾讯QQ2009 安装向导", "下一步(&N)", "Button2")
ControlSetText("腾讯QQ2009 安装向导","","Edit1","D:\Program Files\Tencent\QQ2009")
ControlClick ("腾讯QQ2009 安装向导", "", "Button7")
ControlClick ("腾讯QQ2009 安装向导", "安装(&I)", "Button2")
WinWait("腾讯QQ2009 安装向导","安装完成")
WinWaitActive("腾讯QQ2009 安装向导","安装完成")
ControlClick ("腾讯QQ2009 安装向导", "安装完成", "Button6")
ControlClick ("腾讯QQ2009 安装向导", "安装完成", "Button7")
ControlClick ("腾讯QQ2009 安装向导", "安装完成", "Button8")
ControlClick ("腾讯QQ2009 安装向导", "完成(&F)", "Button2")
MsgBox(4096, "The Setup Was Completed !", "kn007 All Rights Reserved ! E-Mail:kn007@126.com")
Sleep(111)
else
MsgBox(4096, "Warning !!! ", "Could Not Found The Setup File Here ! Please Check !")
Exit
Endif
http://www.autoitx.com/forum.php?mod=viewthread&tid=10181&page=1&fromuid=7644076#pid94778
下载不用钱的 |