举报
ShellExecute('services.msc') Local $hW = WinWaitActive('[CLASS:MMCMainFrame]') Local $txt = ControlListView($hW, '', 'SysListView321', 'GetText', 5, 0) Local $ix = ControlListView($hW, '', 'SysListView321', 'FindItem', $txt, 0) Local $re = ControlListView($hW, '', 'SysListView321', 'Select', $ix) MsgBox(0, '信息', '获取到的索引为5的文本: ' & @TAB & $txt & @LF & _ '以上文本为例搜索索引: ' & @TAB & $ix & @LF & _ '操作选中该索引(1=成功): ' & @TAB & $re)
#RequireAdmin ShellExecute('services.msc') Local $hW = WinWaitActive('[CLASS:MMCMainFrame]') Local $ix = ControlListView($hW, '', 'SysListView321', 'FindItem', "Windows Time", 0) Local $ix1 = ControlListView($hW, '', 'SysListView321', 'select', $ix) MsgBox(4096,"test",$ix & " 为当前项目号 | 选中状态(1为选中): "&$ix1,0)
ControlFocus($hW, '', 'SysListView321')
查看全部评分
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2026-5-2 16:21 , Processed in 0.077467 second(s), 28 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2026 Discuz! Team.