Sign in to follow this  
Followers 0
Charus

Proccess

6 posts in this topic

Hello to all. I want to ask if there is any program that returns to me the executed programs in the task bar? like a proccess list, but this will shows me only the proccesses that running in the task bar

thx

Share this post


Link to post
Share on other sites



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

; List just notepad.exe processes
$list = ProcessList("notepad.exe")
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

just look at to help file


:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites

this script shows me all the running proccesses. i need only the proccesses that running in the task bar (not "task manager") the proccesses that i have open like firefox notepad winzip etc etc

thx

Share this post


Link to post
Share on other sites

this script shows me all the running proccesses. i need only the proccesses that running in the task bar (not "task manager") the proccesses that i have open like firefox notepad winzip etc etc

thx

oh sorry i have to sleep a little <_<

$var = WinList()

For $i = 1 to $var[0][0]
 ; Only display visble windows that have a title
  If $var[$i][0] <> "" AND IsVisible($var[$i][1]) Then
    MsgBox(0, "Details", "Title=" & $var[$i][0] & @LF & "Handle=" & $var[$i][1])
  EndIf
Next

Func IsVisible($handle)
  If BitAnd( WinGetState($handle), 2 ) Then 
    Return 1
  Else
    Return 0
  EndIf

EndFunc

this must be what u want


:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites

yea this is better but this returns the title name of the opened windows not the name of the proccess :S very thx btw

Share this post


Link to post
Share on other sites

Look up EnumProcessModules on the forum, and then you'd use WinList(class or title or regexp) ... then WinGetProcess to the enum.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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