Unc3nZureD Posted April 28, 2014 Posted April 28, 2014 I wrote the following little snippet: #RequireAdmin #include <Array.au3> $l = ProcessList() ReDim $l[$l[0][0] + 1][3] $f = ProcessGetStats("scite.exe") If IsArray($f) Then MsgBox(0,"", "This one works!") _ArrayDisplay($f) EndIf For $i = 3 To $l[0][0] MsgBox(0,"", "'" & $l[$i][0] & "' - " & $i & " - " & $l[0][0]) $m = ProcessGetStats($l[$i][0]) If IsArray($m) Then $l[$i][3] = $m[0] MsgBox(0, "Success", "This is an array! Congratz") Else MsgBox(0, "Error", "It is not an array.") EndIf Next When I'm trying to get Process' Stats from a simple string as in the example: "scite.exe" it works perfectly. After that I'm Trying to loop thru the process List I'm gtting tons of errors. First: It fails all the time Second: It crashes after the 34th process (for me) I can't really see what did I miss, but I'm sure I made a huge mistake somewhere
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now