|
发表于 2008-10-28 14:40:26
|
显示全部楼层
参考下,我这个WINRAR的自动安装及常用设置吧
只要把文件放在和脚本同目录就行
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=..\..\图标工具\ico\winrar.ico
#AutoIt3Wrapper_outfile=E:\winrar.exe
#AutoIt3Wrapper_Res_Comment=WinRAR 3.80正式版,根据个人喜好安装设置
#AutoIt3Wrapper_Res_Description=(C) 2008 by Iceの青
#AutoIt3Wrapper_Res_Fileversion=1.1.9.9
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=Iceの青
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
FileInstall("WinRAR_3.80.exe", @TempDir & "\")
RUN(@TempDir&"\WinRAR_3.80.exe")
WinWaitActive("WinRAR","版权所有")
ControlClick("WinRAR","版权所有","Button2")
WinWaitActive("WinRAR","关联")
ControlClick("WinRAR","关联","Button16")
ControlCommand("WinRAR", "关联","Button13", "UnCheck", "")
ControlCommand("WinRAR", "关联","Button14", "UnCheck", "")
ControlCommand("WinRAR", "关联","Button18", "UnCheck", "")
ControlCommand("WinRAR", "关联","Button19", "UnCheck", "")
ControlCommand("WinRAR", "关联","Button20", "UnCheck", "")
ControlCommand("WinRAR", "关联","Button21", "Check", "")
ControlCommand("WinRAR", "关联","Button23", "Check", "")
ControlCommand("WinRAR", "关联","Button24", "Check", "")
ControlClick("WinRAR","关联","Button25")
WinWaitActive("关联菜单项目","选择")
ControlCommand("关联", "选择","Button2", "Check", "")
ControlCommand("关联", "选择","Button3", "Check", "")
ControlCommand("关联", "选择","Button4", "UnCheck", "")
ControlCommand("关联", "选择","Button5", "UnCheck", "")
ControlCommand("关联", "选择","Button6", "Check", "")
ControlCommand("关联", "选择","Button7", "Check", "")
ControlCommand("关联", "选择","Button8", "UnCheck", "")
ControlCommand("关联", "选择","Button9", "UnCheck", "")
ControlCommand("关联", "选择","Button10", "UnCheck", "")
ControlCommand("关联", "选择","Button11", "UnCheck", "")
ControlCommand("关联", "选择","Button12", "UnCheck", "")
ControlClick("关联菜单项目","选择","Button13")
ControlClick("WinRAR","关联","Button27")
WinWaitActive("WinRAR","成功")
ControlClick("WinRAR","成功","Button1")
FileDelete(@TempDir & "\WinRAR_3.80.exe") |
|