本帖最后由 星雨朝霞 于 2012-5-7 20:38 编辑
在某个帖子看到有迅雷7的自动安装程序(不开源),就把自己写的放出来给大伙过过眼.
欢迎指出错误,并加以修正.
适用版本:7.1(自行测试)If FileExists('Thunder7.1.1.1982.exe')<>1 Then Exit
Run ('Thunder7.1.1.1982.exe')
$title='迅雷7安装程序'
WinWait($title,'软件许可协议')
ControlClick($title,'软件许可协议','Button1')
WinWait($title,'Thunder')
ControlSetText($title,'Thunder','Edit1','D:\Program Files\Thunder Network\Thunder7')
ControlClick($title,'Thunder','Button6')
ControlClick($title,'Thunder','Button7')
WinWait('迅雷7')
ControlClick('迅雷7','','Button2')
WinWait($title,'Thunder')
ControlClick($title,'Thunder','Button1')
WinWait('迅雷7')
ControlClick('迅雷7','','Button2')
WinWaitClose($title,'Thunder')
While 1
If ControlGetHandle($title,'','Button4') Then ExitLoop
Sleep(200)
WEnd
ControlClick($title,'','Button4')
ControlClick($title,'','Button5')
ControlClick($title,'','Button1')
迅雷7其它版本请自行测试!如果迅雷没改过迅雷7的安装包应该是可以用在其它迅雷7版本上的! |