PDA

View Full Version : Free CMU Action Plugin


reteset
06-22-2008, 12:01 PM
Hi to all

a new action plugin CMU from me
CMU is shot name of CPU and memory usage viewer
i have attached an AMS 6 Example,
you can view detailed usage of plugin

it has 3 functions

GetMemoryUsageOf()

returns memory usage of an application via its window
handle in byte , returns (zero) 0 if an error occured

GetCPUsageTotal()

returns overall CPU usage percentage (0-100)
returns (zero) 0 if an error occured

GetCPUsageOf()

returns CPU usage percentage (0-100) of an application
via its window handle , returns (zero) 0 if an error occured

Notes:

1 ) return values may be different from real data, about %1 - %2
2 ) this plugin may not work properly on Win98
3 ) this plugin may require Admin Rights on Windows Vista (not sure)
4 ) do not decrease timer interval,function call period should be minimum 1000 milliseconds (see example)

If You Running Operating System Other Than WinXp SP2,
Please Write Here That How It Works. Thanks

Imagine Programming
06-22-2008, 12:10 PM
Thanks really much! verry usefull ^_^

arb
06-22-2008, 10:57 PM
That was really helpful, TanQ

Solmos
06-27-2008, 08:27 AM
thanks!

but, not is possible get a system processes for getcpu and ram ussage?

RizlaUK
06-28-2008, 08:27 AM
nice work, just what i need, i got a problem with low spec machines with my app, the app runs but functions (loops) perform very slowly, i can make the app release (or stop what it doing) but the problem i was having was knowing when the app is is about to lock up.

just had a quick play with this and already have a small system to detect when the app is useing to many resources based on the system specs and other running apps.

reteset, you are on fire dude, keep up the great work :yes

reteset
06-28-2008, 03:07 PM
thanks!

but, not is possible get a system processes for getcpu and ram ussage?

please elaborate your question,
did you mean that you want to get values for a process
with process ID

Solmos
06-28-2008, 04:28 PM
hi

it's possible get ID process for getram and cpu ussage?

please one example

thx