找回密码
 加入
搜索
查看: 1764|回复: 4

[AU3基础] ProcessList获取多个程序进程数(程序前缀相同,后面不同),有什么办法?(已解决)

  [复制链接]
发表于 2011-3-23 14:12:36 | 显示全部楼层 |阅读模式
本帖最后由 dearmb 于 2011-3-24 17:54 编辑

ProcessList获取多个程序进程数(程序前缀相同,后面不同),有什么办法?
ProcessList ( ["名称"] )获取某个进程信息
但我现在,想要获取多个进程数的和
比如,abc.exe abc1.exe  abc234.exe abc455.exe 等等吧
这些exe是已知的,我现在的想法是每个都读一遍然后相加得到结果
想问大家,有没有什么更好的办法
发表于 2011-3-24 16:05:48 | 显示全部楼层
本帖最后由 netegg 于 2011-3-24 16:14 编辑

#Include <Array.au3>
local $aProc=processlist()
$aRes = _ArrayFindAll($aProc, 'abc', 0 , 0 , 0 , 1)
_arraydisplay($aRes, ' ')
 楼主| 发表于 2011-3-24 16:52:03 | 显示全部楼层
#Include
local $aProc=processlist()
$aRes = _ArrayFindAll($aProc, 'abc', 0 , 0 , 0 , 1)
_arraydi ...
netegg 发表于 2011-3-24 16:05



[0]|8
[1]|9
[2]|10
[3]|11
[4]|12
[5]|21

这样的话,应该用哪个表示进程的数量阿……拜托……
发表于 2011-3-24 16:56:36 | 显示全部楼层
ubound($aRes)
 楼主| 发表于 2011-3-24 17:09:32 | 显示全部楼层
ubound($aRes)
netegg 发表于 2011-3-24 16:56



    十分感谢
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-10-2 10:37 , Processed in 0.091214 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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