Sign in to follow this  
Followers 0
Guest PhantomCircuit

Enumerate all process'?

2 posts in this topic

This is an attempt to enumerate all of the running process' (by brute force)

But uh it always displays a message box with 0 in it no matter what.

Is there an easier or faster way to do this?

If not how can I make this work?

Opt("RunErrorsFatal", 1)       ;1=fatal, 0=silent set @error
Opt("TrayIconHide", 1)       ;0=show, 1=hide tray icon
Dim $PID[1000];
Dim $pointer=0;
For $i = 0 to 100000
    If ProcessExists($i) <> 0 Then
    $PID[$pointer]=ProcessExists($i);
    $pointer=$pointer+1;
    msgbox(0,"",$PID[$pointer]);
    EndIf
Next

Share this post


Link to post
Share on other sites



Hi,

Did u try this from the AutoIt Help file ?

; List all processes
$list = ProcessList()
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0