Charus Posted November 2, 2007 Share Posted November 2, 2007 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 Link to comment Share on other sites More sharing options...
aNewLyfe Posted November 2, 2007 Share Posted November 2, 2007 ; 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 ~ Every Living Thing is a Code Snippet of World Application ~ Link to comment Share on other sites More sharing options...
Charus Posted November 2, 2007 Author Share Posted November 2, 2007 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 Link to comment Share on other sites More sharing options...
aNewLyfe Posted November 2, 2007 Share Posted November 2, 2007 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 ~ Every Living Thing is a Code Snippet of World Application ~ Link to comment Share on other sites More sharing options...
Charus Posted November 2, 2007 Author Share Posted November 2, 2007 yea this is better but this returns the title name of the opened windows not the name of the proccess :S very thx btw Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 2, 2007 Moderators Share Posted November 2, 2007 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. Link to comment Share on other sites More sharing options...
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