Aide:ProcessList.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
ProcessList
###Description###
Returns an array listing the currently running processes (names and PIDs).
###Syntax###
ProcessList ( ["name"] )
###Parameters###
@@ParamTable@@
name
[optional] If a name is given only processes of the same name will be returned.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: An array of process names and PIDs (See Remarks).
Failure: @error is set to 1 when the list cannot be build.
@@End@@
###Remarks###
The array returned is two-dimensional and is made up as follows:
$array[0][0] = Number of processes
$array[1][0] = 1st Process name
$array[1][1] = 1st Process ID (PID)
$array[2][0] = 2nd Process name
$array[2][1] = 2nd Process ID (PID)
...
$array[n][0] = nth Process name
$array[n][1] = nth Process ID (PID)
The list can be empty if $array[0][0] = 0. No @error set in this case.
###Related###
ProcessClose, ProcessExists, ProcessSetPriority, ProcessWait, ProcessWaitClose, ProcessGetStats, WinGetProcess
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
ProcessList
###Description###
Retourne un tableau listant les processus en cours d'exécution (noms et PIDs).
###Syntax###
ProcessList ( ["name"] )
###Parameters###
@@ParamTable@@
name
[optionnel] Si un nom est donné, seul les processus de même nom seront retournés.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne un tableau des noms de processus et leur PID (voir remarques).
Échec: @error est mis à 1 lorsque la liste ne peut pas être construite.
@@End@@
###Remarks###
Le tableau retourné est bi-dimensionnel et se compose comme ceci:
$array[0][0] = Nombre de processus
$array[1][0] = Nom du 1er processus
$array[1][1] = ID (PID) du 1er processus
$array[2][0] = Nom du 2nd processus
$array[2][1] = ID (PID) du 2nd processus
...
$array[n][0] = Nom du Nième processus
$array[n][1] = ID (PID) du Nième processus
La liste peut être vide si $array[0][0] = 0. Dans ce cas aucune @error n'est déterminée.
###Related###
<a href="ProcessClose.htm">ProcessClose</a>, <a href="ProcessExists.htm">ProcessExists</a>, <a href="ProcessSetPriority.htm">ProcessSetPriority</a>, <a href="ProcessWait.htm">ProcessWait</a>, <a href="ProcessWaitClose.htm">ProcessWaitClose</a>, <a href="ProcessGetStats.htm">ProcessGetStats</a>, <a href="WinGetProcess.htm">WinGetProcess</a>
###Example###
@@IncludeExample@@
Traducteur : TT22