|
回复 21# june.diny
Sub GetSubItem_Example()
With Dialog("Windows 任务管理器").WinListView("SysListView32")
For i = 0 To 5
sSub = "映像名称"
sReport = sReport + .GetSubItem(i, "映像名称") & vbTab
sReport = sReport + .GetSubItem(i, "用户名") & vbTab
sReport = sReport + .GetSubItem(i, "会话 ID") & vbTab
sReport = sReport + .GetSubItem(i, "CPU") & vbTab
sReport = sReport + vbCr
msgbox sReport
ItemName = .GetItem(i)
msgbox ItemName
Next
sReport = sReport + .GetSubItem("QTPro.exe", 0) & vbTab
sReport = sReport + .GetSubItem("QTPro.exe", 1) & vbTab
sReport = sReport + .GetSubItem("QTPro.exe", 2) & vbTab
sReport = sReport + .GetSubItem("QTPro.exe", 3) & vbTab
sReport = sReport + vbCr
End With
Reporter.ReportEvent micDone, "Task Manager", sReport
End Sub
GetSubItem_Example()
简体的任务管理器,运行时提示参数不正确。。咋回事。。 |
|