ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE. Software > ProcessTamer

Subfunction from Process Tamer

<< < (2/3) > >>

Just to get you started, have a look at these pages:
AHK fetches stuff from WMI : Autohotkey forum
Query WMI for process attributes: Microsoft Social forum (Check the answer)

You'll have to call that repeatedly (few times per second ? ), so you'd probably best limit the 'select *' to something like 'select PercentProcessorTime from Win32_PerfFormattedData_PerfProc_Process where Name=<yourprocessname>'
('where' clause does support Name like 'firefox%' etc.)

Use NirSoft's Simple WMI View to determine the Name (or IDProcess) used by your process, and desired attributes to form a comma-separated list instead of just PercentProcessorTime (and improve response time).
NB: Using WMI from AHK through COM will perform (much) better than exporting to text file from SimpleWMIView and processing that text file...

Use WMI Explorer (Free for non-commercial use) to test your queries.

Edit 2:
WMI Explorer with this query:
--- ---select Name,PercentProcessorTime ,IDProcess,ElapsedTime,VirtualBytes,WorkingSet from Win32_PerfFormattedData_PerfProc_Process where Name like '%firefox%'

Thank you, this helps me - very nice. But there is a problem with the property "PercentProcessorTime". Under W7 everything works but under XP is always displayed 0% for "PercentProcessorTime" ( Process Tamer works fine).

Well, I don't use XP any longer, so no clue, but you can use NirSoft's wmi view tool to try and find another, similar, attribute that works with XP. Also check the query using Win32_PerfRawData_PerfProc_Process instead of Win32_PerfFormattedData_PerfProc_Process, maybe that does hold data?

Thank you. It works.

Would you mind publishing here what you eventually created out of all suggestions? Names can be changed to protect the innocent :tellme:


[0] Message Index

[#] Next page

[*] Previous page

Go to full version