Jump to content



Photo

SBA Task Manager


  • Please log in to reply
10 replies to this topic

#1 ludocus

ludocus

    Possibly inventive crap going on right here

  • Active Members
  • PipPipPipPipPipPip
  • 664 posts

Posted 03 July 2008 - 08:41 PM

I was inspired by PsaltyDS' udf to make a SBA (Simple But Advanced) Task Manager...
So here it is:
Attached File  SBA_Task_Manager.au3   8.59KB   938 downloads
I had to get the If $oProc.GetOwner($sUserName, $sUserDomain) = 0 Then $avProcs[$n][3] = $sUserDomain & "\" & $sUserName line out because if a process stops.. (like when it closes: run notepad.exe and then close notepad (the win it self) will error the udf..)

Functions:
-See process Name, Priority, Path, CPU (usage), MEM (usage), Date created and Size..
-End a process..
-Export all processes to a file..
-Copy selected process..
Hope you guys like it..

Edited by ludocus, 03 July 2008 - 08:45 PM.








#2 Andreik

Andreik

    Bishop

  • Active Members
  • PipPipPipPipPipPip
  • 2,503 posts

Posted 03 July 2008 - 08:58 PM

I was inspired by PsaltyDS' udf to make a SBA (Simple But Advanced) Task Manager...
So here it is:
Attached File  SBA_Task_Manager.au3   8.59KB   938 downloads
I had to get the If $oProc.GetOwner($sUserName, $sUserDomain) = 0 Then $avProcs[$n][3] = $sUserDomain & "\" & $sUserName line out because if a process stops.. (like when it closes: run notepad.exe and then close notepad (the win it self) will error the udf..)

Functions:
-See process Name, Priority, Path, CPU (usage), MEM (usage), Date created and Size..
-End a process..
-Export all processes to a file..
-Copy selected process..
Hope you guys like it..

I like your script. :muttley:
When the words fail... music speaks

#3 PsaltyDS

PsaltyDS

    Most Venerable Penguin

  • MVPs
  • 13,279 posts

Posted 03 July 2008 - 10:05 PM

I was inspired by PsaltyDS' udf to make a SBA (Simple But Advanced) Task Manager...
So here it is:
Attached File  SBA_Task_Manager.au3   8.59KB   938 downloads
I had to get the If $oProc.GetOwner($sUserName, $sUserDomain) = 0 Then $avProcs[$n][3] = $sUserDomain & "\" & $sUserName line out because if a process stops.. (like when it closes: run notepad.exe and then close notepad (the win it self) will error the udf..)

Functions:
-See process Name, Priority, Path, CPU (usage), MEM (usage), Date created and Size..
-End a process..
-Export all processes to a file..
-Copy selected process..
Hope you guys like it..

That's pretty cool. :muttley:

You might want to slow the updates down, and make the window resizeable so you can see more of the data.

To prevent the crash caused by COM OBJ errors you mentioned, just add a COM error handler to silently catch and handle them.

:)
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

#4 Jango

Jango

    Polymath

  • Active Members
  • PipPipPipPip
  • 202 posts

Posted 04 July 2008 - 08:27 AM

Nice,

Do you think it's hard to add opened port by process ?

#5 ludocus

ludocus

    Possibly inventive crap going on right here

  • Active Members
  • PipPipPipPipPipPip
  • 664 posts

Posted 04 July 2008 - 11:29 AM

No,, I would not know how..
@PsaltyDS: Thnx,,
@Andreik: Thnx,,

#6 DexterMorgan

DexterMorgan

    My Member Title

  • Active Members
  • PipPipPipPipPipPip
  • 890 posts

Posted 04 July 2008 - 01:59 PM

This is good and it works :muttley:
code

#7 ludocus

ludocus

    Possibly inventive crap going on right here

  • Active Members
  • PipPipPipPipPipPip
  • 664 posts

Posted 19 November 2008 - 07:07 PM

thnx :mellow:

#8 Bam

Bam

    Wayfarer

  • Active Members
  • Pip
  • 81 posts

Posted 04 December 2008 - 07:26 PM

i love the ability to export a list but i have an idea
what if u put in somthing where it records the first time that process has ran with the program runing
that way u can easly see if thiers any thing new runing on ur computer :)

#9 Ascend4nt

Ascend4nt

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,086 posts

Posted 01 March 2009 - 12:37 PM

Nice idea and implementation. Only problem is AutoIT3's memory consumption grows incrementally the longer the script runs. Don't know if it's a problem with the WMI memory leak bug they are talkingabout in the _ProcessListProperties thread or not..

Another implementation could make use of the non-WMI functions that are around to get the same basic information. And if you're really ambitious you can create a 'Applications' tab like Task Manager..

Anyway, nice job,
Ascend4nt

#10 n0tb4d

n0tb4d

    Seeker

  • Active Members
  • 8 posts

Posted 03 March 2009 - 11:35 PM

Cooll...

#11 Manko

Manko

    Polymath

  • Active Members
  • PipPipPipPip
  • 229 posts

Posted 04 March 2009 - 12:09 AM

Hi!

That was some speedy updating! :P

Sorry for bitching, but your script doesn't report CPU correctly. Not even close to correctly on my puter...
Saw that with another WMI-based process manager on this forum...
Dunno what's with that?!
Have you compared with built-in taskmanager?

/Manko [Edit: Have to be honest, but preferably not overly negative.]

Edited by Manko, 04 March 2009 - 12:14 AM.

Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users