Macro Scheduler 15

GetProcessIDs

GetProcessIds>procname/exe,array_of_ids

 

Returns an array of process IDs for the given process name.

 

See also: WaitProcessExists, WaitProcessTerminated, KillProcess, ProcessExists

Abbreviation: Pro

 

Example

 

ProcessExists>iexplore.exe,bIEExists

GetProcessIds>iexplore.exe,arrIEs

If>arrIEs_count>0

Let>k=0

Repeat>k

  Let>k=k+1

  Let>this_id=arrIEs_%k%

Until>k=arrIEs_count