#AutoIt3Wrapper_outfile = ttpsetup_zd.exe
#AutoIt3Wrapper_Res_Description = 软件: [ttpsetup] 自动安装
#AutoIt3Wrapper_Res_Comment = 脚本生成于: 2011年 03月 16日
#Include <G:\Auto_Code\Resource\GuiLVTV.au3>
Opt("MouseCoordMode", 0)
Global $hListView, $Path_Fitx, $Path_Fit, $Nem_Path
$Path_Fitx = StringInStr ( ClipGet(), ":", 2 )
If $Path_Fitx = 0 Then
$Path_Fit = ""
Else
$Path_Fit = ClipGet()
EndIf
If FileExists("G:\Auto_Code\temp.txt") Then FileDelete("G:\Auto_Code\temp.txt")
$file = FileOpen("G:\Auto_Code\temp.txt", 1)
FileWriteLine($file, "ttpsetup.exe")
FileWriteLine($file, "ttpsetup_zd.exe")
FileClose($file)
Run(@ScriptDir & "\ttpsetup.exe")
WinWait("千千静听 5.7正式版 安装程序 Unicode","欢迎使用 千千静")
WinActivate("千千静听 5.7正式版 安装程序 Unicode","欢迎使用 千千静")
Sleep(250)
ControlClick( "千千静听 5.7正式版 安装程序 Unicode", "","Button2" )
WinWait("千千静听 5.7正式版 安装程序 Unicode","请仔细阅读以下的")
WinActivate("千千静听 5.7正式版 安装程序 Unicode","请仔细阅读以下的")
Sleep(250)
ControlClick( "千千静听 5.7正式版 安装程序 Unicode", "","Button2" )
WinWait("千千静听 5.7正式版 安装程序 Unicode","选择要安装的组件")
WinActivate("千千静听 5.7正式版 安装程序 Unicode","选择要安装的组件")
$TV_h = ControlGetHandle("千千静听 5.7正式版 安装程序 Unicode", "Tree1", "SysTreeView321")
$First = _GUICtrlTreeView_GetFirstItem($TV_h)
_GUICtrlTreeView_EnsureVisible($TV_h, $First)
Opt("MouseClickDelay", 600)
$Pos_String = StringTrimRight("64,23|", 1)
$Pos_Array = StringSplit($Pos_String, "|", 1)
For $i = 1 To $Pos_Array[0]
$Pos_Temp = StringSplit($Pos_Array[$i], ",")
$TV_Item_h = _GUICtrlTreeView_HitTestItem($TV_h, $Pos_Temp[1], $Pos_Temp[2])
_GUICtrlTreeView_ClickItem($TV_h, $TV_Item_h, "left", False)
_GUICtrlTreeView_SetFocused($TV_h, $TV_Item_h, True)
If _GUICtrlTreeView_GetChildren($TV_h, $TV_Item_h) = True Then
_GUICtrlTreeView_Expand($TV_h, $TV_Item_h, True)
_GUICtrlTreeView_SelectItem($TV_h, $TV_Item_h, $TVGN_FIRSTVISIBLE)
Else
_GUICtrlTreeView_SelectItem($TV_h, $TV_Item_h, $TVGN_FIRSTVISIBLE)
If _GUICtrlTreeView_GetChecked($TV_h, $TV_Item_h) = True Then
_GUICtrlTreeView_SetChecked($TV_h, $TV_Item_h, False)
Else
_GUICtrlTreeView_SetChecked($TV_h, $TV_Item_h, True)
EndIf
EndIf
Next
MouseClick ( "left",65, 142, 1, 50 )
MouseClick ( "left",65, 160, 1, 50 )
MouseClick ( "left",65, 172, 1, 50 )
MouseClick ( "left",63, 190, 1, 50 )
MouseClick ( "left",63, 205, 1, 50 )
MouseClick ( "left",63, 222, 1, 50 )
MouseClick ( "left",64, 237, 1, 50 )
MouseClick ( "left",64, 254, 1, 50 )
MouseClick ( "left",64, 269, 1, 50 )
MouseClick ( "left",64, 285, 1, 50 )
$Pos_String = StringTrimRight("81,187|", 1)
$Pos_Array = StringSplit($Pos_String, "|", 1)
For $i = 1 To $Pos_Array[0]
$Pos_Temp = StringSplit($Pos_Array[$i], ",")
$TV_Item_h = _GUICtrlTreeView_HitTestItem($TV_h, $Pos_Temp[1], $Pos_Temp[2])
_GUICtrlTreeView_ClickItem($TV_h, $TV_Item_h, "left", False)
_GUICtrlTreeView_SetFocused($TV_h, $TV_Item_h, True)
If _GUICtrlTreeView_GetChildren($TV_h, $TV_Item_h) = True Then
_GUICtrlTreeView_Expand($TV_h, $TV_Item_h, True)
_GUICtrlTreeView_SelectItem($TV_h, $TV_Item_h, $TVGN_FIRSTVISIBLE)
Else
_GUICtrlTreeView_SelectItem($TV_h, $TV_Item_h, $TVGN_FIRSTVISIBLE)
If _GUICtrlTreeView_GetChecked($TV_h, $TV_Item_h) = True Then
_GUICtrlTreeView_SetChecked($TV_h, $TV_Item_h, False)
Else
_GUICtrlTreeView_SetChecked($TV_h, $TV_Item_h, True)
EndIf
EndIf
Next
MouseClick ( "left",64, 188, 1, 50 )
MouseClick ( "left",64, 204, 1, 50 )
$Pos_String = StringTrimRight("49,203|", 1)
$Pos_Array = StringSplit($Pos_String, "|", 1)
For $i = 1 To $Pos_Array[0]
$Pos_Temp = StringSplit($Pos_Array[$i], ",")
$TV_Item_h = _GUICtrlTreeView_HitTestItem($TV_h, $Pos_Temp[1], $Pos_Temp[2])
_GUICtrlTreeView_ClickItem($TV_h, $TV_Item_h, "left", False)
_GUICtrlTreeView_SetFocused($TV_h, $TV_Item_h, True)
If _GUICtrlTreeView_GetChildren($TV_h, $TV_Item_h) = True Then
_GUICtrlTreeView_Expand($TV_h, $TV_Item_h, True)
_GUICtrlTreeView_SelectItem($TV_h, $TV_Item_h, $TVGN_FIRSTVISIBLE)
Else
_GUICtrlTreeView_SelectItem($TV_h, $TV_Item_h, $TVGN_FIRSTVISIBLE)
If _GUICtrlTreeView_GetChecked($TV_h, $TV_Item_h) = True Then
_GUICtrlTreeView_SetChecked($TV_h, $TV_Item_h, False)
Else
_GUICtrlTreeView_SetChecked($TV_h, $TV_Item_h, True)
EndIf
EndIf
Next
MouseClick ( "left",64, 222, 1, 50 )
MouseClick ( "left",64, 239, 1, 50 )
MouseClick ( "left",64, 254, 1, 50 )
MouseClick ( "left",64, 271, 1, 50 )
MouseClick ( "left",63, 287, 1, 50 )
MouseClick ( "left",63, 304, 1, 50 )
MouseClick ( "left",63, 317, 1, 50 )