Returns an array listing the currently running processes (names and PIDs).
ProcessList ( ["name"] )
Parameters
name | [Optional] If a name is given only processes of the same name will be returned. |
Return Value
Success - An array of process names and PIDs (See Remarks).
Remarks
The array returned is two-dimensional and is made up as follows:
Related
ProcessClose, ProcessExists, ProcessSetPriority, ProcessWait, ProcessWaitClose
Example
; List all processes
$list = ProcessList()
for $i = 1 to $list[0][0]
msgbox(0, $list[$i][0], $list[$i][1])
next
; List just notepad.exe processes
$list = ProcessList("notepad.exe")
for $i = 1 to $list[0][0]
msgbox(0, $list[$i][0], $list[$i][1])
next