Jump to content

Export ProcessList() to notepad.


Recommended Posts

Hi,

so I want to make a easy script that checks all running proces and puts them in a .txt file.

I start of with checking how.

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

Autoit gives me this. It shows all proces in a msg.

The problem with this for me is the $list[0][0], $list[$i][0], $list[$i][1] i don't realy get that.

So i made this.

$Proces = ProcessList()
    $a = GUICtrlRead($Proces)                           
    $file1 = FileOpen("proces.txt", 1)              
    FileWriteLine($file1, $a)                           
    FileClose($file1)

Bad thing is it keeps droping a 0 in the textfile idk why.

I thought it might drop 1 all processes or atleast one but a 0 why/how?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...