$t = "系统配置实用程序"
Run('msconfig.exe')
WinWaitActive($t)
ControlCommand($t, "", 'SysTabControl321', "TabRight")
ControlCommand($t, "", 'SysTabControl321', "TabRight")
ControlCommand($t, "", 'SysTabControl321', "TabRight")
ControlCommand($t, "", 'SysTabControl321', "TabRight")
Sleep(500)
ControlListView($t, "", 'SysListView321', "SelectClear")
$file = FileOpen("D:\test.txt")
If $file = -1 Then Exit MsgBox(0, "错误", "不能打开文件.")
Do
Sleep(1000)
$n = FileReadLine($file)
If @error = -1 Then ExitLoop
$G = ControlListView($t, "", "SysListView321", "FindItem", $n, 0)
ControlListView($t, "", 'SysListView321', "Select", $G)
;Sleep(1000)
Until @error
|