第一步:
新建一个文件夹,在文件夹里添加安装程序和建一个后缀名为:AU3的脚本文件(当然首先你得安装autoit软件)
第二步:
编辑脚本:Run("4UWMAMP3Converter.exe")
WinWaitActive("Setup - 4U WMA MP3 Converter","Welcome to the 4U WMA MP3 Converter Setup Wizard")
Send("&Next >")
WinWaitActive("Setup - 4U WMA MP3 Converter","License Agreement")
ControlClick("Setup - 4U WMA MP3 Converter","License Agreement","[class:TRadioButton;INSTANCE:1]")
ControlClick("Setup - 4U WMA MP3 Converter","License Agreement","[class:TButton;INSTANCE:2]")
WinWaitActive("Setup - 4U WMA MP3 Converter","Select Destination Location")
ControlClick("Setup - 4U WMA MP3 Converter","Select Destination Location","[class:TButton;INSTANCE:3]")
WinWaitActive("Setup - 4U WMA MP3 Converter","Select Start Menu Folder")
ControlClick("Setup - 4U WMA MP3 Converter","Select Start Menu Folder","[class:TButton;INSTANCE:4]")
WinWaitActive("Setup - 4U WMA MP3 Converter","Select Additional Tasks")
Send("&Next >")
WinWaitActive("Setup - 4U WMA MP3 Converter","Ready to Install")
ControlClick("Setup - 4U WMA MP3 Converter","Ready to Install","[class:TButton;INSTANCE:4]")
WinWaitActive("4U WMA MP3 Convertor Tutorial"," ")
ControlClick("Setup - 4U WMA MP3 Converter"," ","[class:TButton;INSTANCE:3]")
WinWaitActive("Setup - 4U WMA MP3 Converter","Completing the 4U WMA MP3 Converter Setup Wizard")
Send("&Finish")
WinWaitActive("4U WMA MP3 Convertor Tutorial"," ")
Send("&Try it for evaluation")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\WMAConvert Options")
第三步:
保存并按F5运行
注:此脚本还存在最后一步没有实现,希望有人能解决这个问题,正在努力中啊,菜鸟ing