Administrators Jon Posted November 28, 2004 Administrators Share Posted November 28, 2004 ProcessList is only an unstable function IIRC. So I think I'm going to change it to remove the differents "modes" (return pids, or names, or a string of pid|name). I think I'll do the same as I did with WinList so that it returns a 2d array of PIDs and Names. Then I'll make it so that if you give a process name (notepad.exe or something) then instead of giving you a list of all processes it just gives you a list of processes that match that process name. I'm also adding WinGetProcess that will get the PID of a given window. I suppose the only missing function then would be a PID->process name type thing. (Of course you could get this by looping through the ProcessList() return) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
this-is-me Posted November 28, 2004 Share Posted November 28, 2004 I think you have a good idea there, but could you also look into adding support for getting the pid's owning user on nt/2k/xp?It wouldn't be too much if it were a separate function as well. Something like ProcessGetOwner( processname or pid )I think the relevant api calls can be found here:http://www.codeguru.com/forum/showthread.p...891&mode=linear Who else would I be? Link to comment Share on other sites More sharing options...
quinthar Posted November 28, 2004 Share Posted November 28, 2004 Is anyone else interested in some more general Process information? Specifically, I'd like some way to measure CPU and memory usage on a per-process basis. I'm using AutoIt as an automated testing platform, and I'd love to monitor CPU/memory (as well as network) usage throughout my tests. Would it excite anyone else if I added this feature? Is anyone already working on this? -david Link to comment Share on other sites More sharing options...
anystupidassname Posted July 7, 2005 Share Posted July 7, 2005 Is anyone else interested in some more general Process information? Specifically, I'd like some way to measure CPU and memory usage on a per-process basis. I'm using AutoIt as an automated testing platform, and I'd love to monitor CPU/memory (as well as network) usage throughout my tests.Would it excite anyone else if I added this feature? Is anyone already working on this?-david<{POST_SNAPBACK}>Yes, I can't figure out how to wait until a process has been idle for say 10 seconds before continuing my script This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#....... Link to comment Share on other sites More sharing options...
w0uter Posted July 7, 2005 Share Posted July 7, 2005 made this some time ago.maby it will help you.maby not.you need the an beta for this.ProcessInfo.au3 My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
layer Posted July 7, 2005 Share Posted July 7, 2005 I've always wanted to get CPU... When DllStruct funcs came out it was possible, but the DllCall didn't return the right results all the time To get the CPU for the system, call "GetSystemTimes" and make sure you have that extra s at the end, because there is GetSystemTime and GetSystemTimes, the one you would be looking for is GetSystemTimes... You need to use DllStruct and DllCall... But I don't know how to get it for a specific process, I'd like to see it built in AutoIt since we have MemGetStats... FootbaG 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