LookWhosScriptingNow Posted September 28, 2005 Share Posted September 28, 2005 Hi, I have tried to search the forums but cannot find anything. I was just wondering what the easiest way to retrieve information about processes that are running in terms of memory and processor. I know that a function exists in AutoIT called GetMemStats but this only seems to give me info on memory. Does anybody know of a method to retrieve other resource information, such as processor utilisation etc..etc.. Cheers. Link to comment Share on other sites More sharing options...
AutoChris Posted September 28, 2005 Share Posted September 28, 2005 (edited) Hi,I have tried to search the forums but cannot find anything.I was just wondering what the easiest way to retrieve information about processes that are running in terms of memory and processor. I know that a function exists in AutoIT called GetMemStats but this only seems to give me info on memory. Does anybody know of a method to retrieve other resource information, such as processor utilisation etc..etc..Cheers. You can open the task manager (hidden) and read from the status bar text. That is a simple, if not very original, solution. Edited September 28, 2005 by SerialKiller Link to comment Share on other sites More sharing options...
boogieoompa Posted September 28, 2005 Share Posted September 28, 2005 There is also a sample script located in AutoIt3\Examples\GUI\Advanced\sysinfo This should have been installed locally with autoit3. You might want to check it out I found it to be usefull. Good luck Link to comment Share on other sites More sharing options...
LookWhosScriptingNow Posted September 28, 2005 Author Share Posted September 28, 2005 There is also a sample script located in AutoIt3\Examples\GUI\Advanced\sysinfoThis should have been installed locally with autoit3. You might want to check it out I found it to be usefull.Good luckI had a look, thanks. Unfortunately I was unable to retrieve info on processor utilisation.Any other ideas?Ta. Link to comment Share on other sites More sharing options...
AutoChris Posted September 28, 2005 Share Posted September 28, 2005 I had a look, thanks. Unfortunately I was unable to retrieve info on processor utilisation.Any other ideas?Ta. Other ideas? Sure! The one I posted (and borrowed from someone else--can't recall who). Here is some more info... If Not ProcessExists ("taskmgr.exe") Then Run ("taskmgr.exe", "", @SW_HIDE) $CPU = StatusbarGetText("Windows Task Manager", "", 2) $CPU = StringTrimRight($CPU, 1) ;Remove the % $CPU = StringRight($CPU, 3) ;Get the possible 3 digits $CPU = Int(StringReplace($CPU, ":", "")) ;Remove the colon and convert to an integer Link to comment Share on other sites More sharing options...
LookWhosScriptingNow Posted September 28, 2005 Author Share Posted September 28, 2005 Sorry..will try your option. Thanks for the help. Link to comment Share on other sites More sharing options...
Confuzzled Posted September 29, 2005 Share Posted September 29, 2005 (edited) Welcome to the world of Windows WMI! The Microsoft site has extensive (overwhelming?) documentation...Do a search in the forums for Scriptomatic and you will find a tool to assist you to write the code to extract most things you want to know about your system.PS: If you are looking for Win98 resources, have a look at post #6 in http://www.autoitscript.com/forum/index.ph...indpost&p=88507 Edited September 29, 2005 by Confuzzled 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