无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2331|回复: 0
打印 上一主题 下一主题

autoit自动安装迅雷

[复制链接]
跳转到指定楼层
1#
发表于 2008-3-20 17:28:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
#Region ;**** 参数创建于 AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_Comment=安装迅雷5
#AutoIt3Wrapper_Res_Description=安装迅雷5
#AutoIt3Wrapper_Res_Fileversion=1.1
#AutoIt3Wrapper_Res_LegalCopyright=肥肥
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
TrayTip("请注意!","正在安装迅雷",1)
run("Thunder5.7.5.421.exe")

$str1="安装 - 迅雷5"
$str2="下一步(&N) >"
$str3="我同意此协议(&A)"
$str4="开机自动启动(&A) (迅雷默认开机自动启动)"

;关闭鼠标键盘控制
;BlockInput(1)
ProcessClose("thunder5.exe")
WinWait($str1,$str2)
if not WinActive($str1,$str2)Then
        WinActivate($str1,$str2)
EndIf
WinWaitActive($str1,$str2)
ControlClick($str1,$str2,"TButton1")

WinWait($str1,$str3)
if not WinActive($str1,$str3)Then
        WinActivate($str1,$str3)
EndIf
WinWaitActive($str1,$str3)
ControlCommand($str1,$str3,"TRadioButton1","Check", "")
ControlClick($str1,$str3,"TButton2")

WinWait($str1,$str4)
if not WinActive($str1,$str4)Then
        WinActivate($str1,$str4)
EndIf
ControlCommand($str1,$str4,"TCheckBox2","UnCheck", "")
Send("{DOWN}")
Send("{tab}")
send("{space}{space}")
send("{down}{space}")
ControlClick($str1,"下一步(&N) >","TButton2")

WinWait($str1,$str2)
if not WinActive($str1,$str2)Then
        WinActivate($str1,$str2)
EndIf
WinWaitActive($str1,$str2)
ControlClick($str1,$str2,"TButton3")

WinWait($str1,"安装(&I)")

if not WinActive($str1,"安装(&I)")Then
        WinActivate($str1,"安装(&I)")
EndIf
WinWaitActive($str1,"安装(&I)")
ControlClick($str1,"安装(&I)","TButton3")

WinWait($str1,"完成(&F)")
if not WinActive($str1,"完成(&F)")Then
        WinActivate($str1,"完成(&F)")
EndIf
WinWaitActive($str1,"完成(&F)")
ControlClick($str1,"完成(&F)","TButton3")

WinWait($str1,"确定")
if not WinActive($str1,"确定")Then
        WinActivate($str1,"确定")
EndIf
WinWaitActive($str1,"确定")
ControlClick($str1,"确定","TButton1")
while 1
        if ProcessExists("Thunder5.exe")Then
                ProcessClose("Thunder5.exe")
                ExitLoop
        EndIf
WEnd
FileDelete(@DesktopDir & "\免费高清电影.lnk")

;开启鼠标键盘控制
BlockInput(0)
Exit
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-9-19 04:11

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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