找回密码
 加入
搜索
查看: 1718|回复: 2

[AU3基础] [已解决]怎么激活任务管理进程选项。

[复制链接]
发表于 2012-12-31 21:14:43 | 显示全部楼层 |阅读模式
本帖最后由 3370225 于 2012-12-31 22:24 编辑

请问用脚本调出任务管理器后,怎么让任务管理器进入进程那个窗口选项卡

$iProcessIndex = ControlListView("Windows 任务管理器", "", 1009, "FindItem","NOTEPAD.EXE")
用这个如果不进入进程那选项卡,就找不到了,请问要怎么激活进程那选项卡
发表于 2012-12-31 21:24:08 | 显示全部楼层
回复 1# 3370225

ControlCommand tab相关的那几个
发表于 2012-12-31 22:05:41 | 显示全部楼层

WinActivate("Windows 任务管理器")
Sleep(500)
$i = ControlCommand ( "Windows 任务管理器", "", "SysTabControl321", "CurrentTab", "" )
While $i>1
        ControlCommand ( "Windows 任务管理器", "", "SysTabControl321", "TabLeft", "" ) 
        $i -= 1
        Sleep(500)
WEnd
While True
        ;$txt = ControlGetText ("Windows 任务管理器", "", "[CLASS:SysTabControl32; INSTANCE:1]")
        $txt = WinGetText( "Windows 任务管理器", "" )
        ;ConsoleWrite($txt & @CRLF)
        If StringInStr($txt, "结束进程(&E)") Then
                ExitLoop
        EndIf
        ControlCommand ( "Windows 任务管理器", "", "SysTabControl321", "TabRight", "" )
        Sleep(500)
WEnd
Sleep(500)
MsgBox(0, "got", $txt)

评分

参与人数 1金钱 +10 收起 理由
3370225 + 10 谢谢了

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-29 15:35 , Processed in 0.082889 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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