XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
System Running Processes? https://www.bbs.xwidget.com/viewtopic.php?f=8&t=5461 |
Page 1 of 1 |
Author: | kabott1 [ February 6th, 2015, 12:10 pm ] |
Post subject: | System Running Processes? |
Hi all, i was wondering if there is a core that shows running system processes and their memory usage? perhaps the top 5? i cant seem to find a core for this, thanks in advance! |
Author: | pepe [ March 4th, 2015, 1:08 am ] |
Post subject: | Re: System Running Processes? |
I miss such a Core in XWidget too (since the beginning!) ![]() For that I have to use the still amazing (but quite old and since 2007 abandoned) "Serious Samurize" (a free System Monitoring and Desktop enhancement tool). It works on Windows 8.1 64-bit, but was developed for Windows XP 32-bit (and does not take full advantage of Windows 7/8). Apart from exactly that feature, it has many more (available via plugins(!), e.g. "PageScraper", which makes it much easier to catch and filter data from web pages or local files). Here is an example of the ProcessInfo Plugin in Samurize (meant as an inspiration): ![]() ![]() In a "ProcessInfo Core" I would like to catch at least the following information (with the possibility having sorted them by several criteria, see image above): - Process ID (Parent Process ID) - Process name - RAM usage (MB + percent) - CPU usage (percent) - Threads (count) - Overall process count (and at least a list of top 10) Samurize includes the following data: AllProcesses_Count AllProcesses_CPUPercent, AllProcesses_CPUPercent_1Decimal, AllProcesses_CPUPercent_2Decimals AllProcesses_HandleCount, AllProcesses_HandleCount_Formatted AllProcesses_OtherOperationCount, AllProcesses_OtherOperationCount_Formatted AllProcesses_OtherTransferCount, AllProcesses_OtherTransferCount_Formatted, AllProcesses_OtherTransferCount_KB, AllProcesses_OtherTransferCount_KB_Formatted, AllProcesses_OtherTransferCount_MB, AllProcesses_OtherTransferCount_MB_Formatted AllProcesses_PageFaultCount, AllProcesses_PageFaultCount_Formatted AllProcesses_PagefileUsage, AllProcesses_PagefileUsage_Formatted, AllProcesses_PagefileUsage_KB, AllProcesses_PagefileUsage_KB_Formatted, AllProcesses_PagefileUsage_MB, AllProcesses_PagefileUsage_MB_Formatted AllProcesses_ReadOperationCount, AllProcesses_ReadOperationCount_Formatted AllProcesses_ReadTransferCount, AllProcesses_ReadTransferCount_Formatted AllProcesses_ReadTransferCount_KB, AllProcesses_ReadTransferCount_KB_Formatted, AllProcesses_ReadTransferCount_MB, AllProcesses_ReadTransferCount_MB_Formatted AllProcesses_ThreadCount, AllProcesses_ThreadCount_Formatted AllProcesses_VirtualSize, AllProcesses_VirtualSize_Formatted, AllProcesses_VirtualSize_KB, AllProcesses_VirtualSize_KB_Formatted, AllProcesses_VirtualSize_MB, AllProcesses_VirtualSize_MB_Formatted AllProcesses_WorkingSetSize, AllProcesses_WorkingSetSize_Formatted, AllProcesses_WorkingSetSize_KB, AllProcesses_WorkingSetSize_KB_Formatted, AllProcesses_WorkingSetSize_MB, AllProcesses_WorkingSetSize_MB_Formatted AllProcesses_WriteOperationCount, AllProcesses_WriteOperationCount_Formatted AllProcesses_WriteTransferCount, AllProcesses_WriteTransferCount_Formatted, AllProcesses_WriteTransferCount_KB, AllProcesses_WriteTransferCount_KB_Formatted, AllProcesses_WriteTransferCount_MB, AllProcesses_WriteTransferCount_MB_Formatted BasePriority, BasePriority_Delta CPUPercent, CPUPercent_1Decimal, CPUPercent_2Decimals CreateTime, CreateTime_Formatted HandleCount, HandleCount_Delta, HandleCount_Formatted KernelTime, KernelTime_Delta, KernelTime_Delta_Formatted, KernelTime_Formatted OtherOperationCount, OtherOperationCount_Delta, OtherOperationCount_Delta_Formatted, OtherOperationCount_Formatted OtherTransferCount, OtherTransferCount_Delta, OtherTransferCount_Delta_Formatted, OtherTransferCount_Delta_KB, OtherTransferCount_Delta_KB_Formatted, OtherTransferCount_Delta_MB, OtherTransferCount_Delta_MB_Formatted, OtherTransferCount_Formatted, OtherTransferCount_KB, OtherTransferCount_KB_Formatted, OtherTransferCount_MB, OtherTransferCount_MB_Formatted PageFaultCount, PageFaultCount_Delta, PageFaultCount_Formatted PagefileUsage, PagefileUsage_Delta, PagefileUsage_Delta_Formatted, PagefileUsage_Delta_KB, PagefileUsage_Delta_KB_Formatted, PagefileUsage_Delta_MB, PagefileUsage_Delta_MB_Formatted, PagefileUsage_Formatted, PagefileUsage_KB, PagefileUsage_KB_Formatted, PagefileUsage_MB, PagefileUsage_MB_Formatted PeakPagefileUsage, PeakPagefileUsage_Delta, PeakPagefileUsage_Delta_Formatted, PeakPagefileUsage_Delta_KB, PeakPagefileUsage_Delta_KB_Formatted, PeakPagefileUsage_Delta_MB, PeakPagefileUsage_Delta_MB_Formatted, PeakPagefileUsage_Formatted, PeakPagefileUsage_KB, PeakPagefileUsage_KB_Formatted, PeakPagefileUsage_MB, PeakPagefileUsage_MB_Formatted PeakVirtualSize, PeakVirtualSize_Delta, PeakVirtualSize_Delta_Formatted, PeakVirtualSize_Delta_KB, PeakVirtualSize_Delta_KB_Formatted, PeakVirtualSize_Delta_MB, PeakVirtualSize_Delta_MB_Formatted, PeakVirtualSize_Formatted, PeakVirtualSize_KB, PeakVirtualSize_KB_Formatted, PeakVirtualSize_MB, PeakVirtualSize_MB_Formatted PeakWorkingSetSize, PeakWorkingSetSize_Delta, PeakWorkingSetSize_Delta_Formatted, PeakWorkingSetSize_Delta_KB, PeakWorkingSetSize_Delta_KB_Formatted, PeakWorkingSetSize_Delta_MB, PeakWorkingSetSize_Delta_MB_Formatted, PeakWorkingSetSize_Formatted, PeakWorkingSetSize_KB, PeakWorkingSetSize_KB_Formatted, PeakWorkingSetSize_MB, PeakWorkingSetSize_MB_Formatted PrivatePageCount, PrivatePageCount_Delta, PrivatePageCount_Delta_Formatted, PrivatePageCount_Formatted ProcessID, ParentProcessID ProcessName, ProcessName_NoExtension ProcessPath ProcessPosition QuotaNonPagedPoolUsage, QuotaNonPagedPoolUsage_Delta QuotaPagedPoolUsage, QuotaPagedPoolUsage_Delta QuotaPeakNonPagedPoolUsage, QuotaPeakNonPagedPoolUsage_Delta QuotaPeakPagedPoolUsage, QuotaPeakPagedPoolUsage_Delta ReadOperationCount, ReadOperationCount_Delta, ReadOperationCount_Delta_Formatted, ReadOperationCount_Formatted ReadTransferCount, ReadTransferCount_Delta, ReadTransferCount_Delta_Formatted, ReadTransferCount_Delta_KB, ReadTransferCount_Delta_KB_Formatted, ReadTransferCount_Delta_MB, ReadTransferCount_Delta_MB_Formatted, ReadTransferCount_Formatted, ReadTransferCount_KB, ReadTransferCount_KB_Formatted, ReadTransferCount_MB, ReadTransferCount_MB_Formatted RunningTime, RunningTime_Formatted ThreadCount, ThreadCount_Delta, ThreadCount_Formatted TotalCPUTime, TotalCPUTime_Delta, TotalCPUTime_Delta_Formatted, TotalCPUTime_Formatted UserTime, UserTime_Delta, UserTime_Delta_Formatted, UserTime_Formatted VirtualSize, VirtualSize_Delta, VirtualSize_Delta_Formatted, VirtualSize_Delta_KB, VirtualSize_Delta_KB_Formatted, VirtualSize_Delta_MB, VirtualSize_Delta_MB_Formatted, VirtualSize_Formatted, VirtualSize_KB, VirtualSize_KB_Formatted, VirtualSize_MB, VirtualSize_MB_Formatted WorkingSetSize, WorkingSetSize_Delta, WorkingSetSize_Delta_Formatted, WorkingSetSize_Delta_KB, WorkingSetSize_Delta_KB_Formatted, WorkingSetSize_Delta_MB, WorkingSetSize_Delta_MB_Formatted, WorkingSetSize_Formatted, WorkingSetSize_KB, WorkingSetSize_KB_Formatted, WorkingSetSize_MB, WorkingSetSize_MB_Formatted WriteOperationCount, WriteOperationCount_Delta, WriteOperationCount_Delta_Formatted, WriteOperationCount_Formatted WriteTransferCount, WriteTransferCount_Delta, WriteTransferCount_Delta_Formatted, WriteTransferCount_Delta_KB, WriteTransferCount_Delta_KB_Formatted, WriteTransferCount_Delta_MB, WriteTransferCount_Delta_MB_Formatted, WriteTransferCount_Formatted, WriteTransferCount_KB, WriteTransferCount_KB_Formatted, WriteTransferCount_MB, WriteTransferCount_MB_Formatted (btw: the file size of that Samurize plugin is 228 KB) Maybe it is something to think about. ![]() |
Author: | kabott1 [ March 4th, 2015, 6:06 am ] |
Post subject: | Re: System Running Processes? |
Hi pepe, thanks for the answer! yea i cant believe something so basic is missing, hopefully the guys will include it in version 2, i know about samurize, never used it though, i used Rainmeter, also excellent, anyways i think ill wait for V2, don't wanna have a program running entirely just to see the processes, im ok for now with memory & cpu usage. pepe, do you know if there is way for xwidget's html core to accept cookies? |
Author: | digigamer [ March 14th, 2015, 12:20 am ] |
Post subject: | Re: System Running Processes? |
Here comes WMI Code: var wbemFlagReturnImmediately = 0x10; var wbemFlagForwardOnly = 0x20; var objWMIService = GetObject("winmgmts:\\\\.\\root\\CIMV2"); var colItems = objWMIService.ExecQuery("SELECT Caption,ProcessId,WorkingSetSize, FROM Win32_Process", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); print("Caption: " + objItem.Caption); print("Process Id: " + objItem.ProcessId); print("Working Set Size: " + objItem.WorkingSetSize); } Unfortunately you cannot sort through processes efficiently... Here's another approach but slow http://stackoverflow.com/questions/6833 ... 85#6834585 |
Author: | kabott1 [ March 14th, 2015, 7:13 am ] |
Post subject: | Re: System Running Processes? |
Well, seems today im out of luck, i cant get this one to work either ![]() I copy/pasted your script in a widget's code with a background layer, saved changes and run widget but nothing happens, what am I missing? |
Author: | digigamer [ March 25th, 2015, 3:41 am ] |
Post subject: | Re: System Running Processes? |
Ahh! I missed that won't work on each and everyone's computer. I really forgot about vista and 7's UAC. unfortunately you'll require admin previlages for this script. |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |