_GUICtrlListView_ClickItem 点击问题
本帖最后由 流沙枫 于 2013-6-9 20:23 编辑#include <WinAPI.au3>
#Include <WinAPIEx.au3>
#include <Process.au3>
#include <GuiConstantsEx.au3>
#include <GuiListView.au3>
#Include <array.au3>
Local $pid=ProcessExists("taskmgr.exe")
Local $prohwd=_WinAPI_EnumProcessWindows($pid,False)
WinActivate('Windows 任务管理器')
;~ MsgBox(0,0,$prohwd)
;~ _ArrayDisplay($prohwd)
$FindItem=ControlListView($prohwd,'',1009,'FindItem','vmware-usb.exe')
$GetItemCount=ControlListView($prohwd,'',1009,'GetItemCount')
$text1=""
For $j= 0 To $GetItemCount-1
$text1=$text1&$j+1&':'&ControlListView($prohwd,'',1009,'GetText',$j)&@CRLF ;读取字符串以|分割
Next
;~ MsgBox(0,"数量: "&$GetItemCount,$text1)
$Select=ControlListView($prohwd,'',1009,'Select',$FindItem)
Local $vis=_GUICtrlListView_EnsureVisible($prohwd, $FindItem+1)
_GUICtrlListView_ClickItem($prohwd,$FindItem,'right',True,1)
$msg=GUIGetMsg()
if $msg="转到服务" then
_GUICtrlListView_ClickItem($prohwd,$msg,'left',True,1)
end if
点击没反应的?
页:
[1]