Cpu Widget

Hi I was just wondering if anyone out there would like to try and make Samurize version of this awesome CPU widget

cpu.png

Thanks in advance

-zoot

#81586

looks cool. What program is this screenshot from?

#81661

The ss is from a real Mac. The only problem that there will be is that in Windows, you'll have fifteen services.exe running and all the other programs which are irrelevant to the user. Maybe the script could filter out the default programs and add the other ones.

#81664

good idea! any takers?

#81693

Theres a way in samurize to show just the apps running under the user, not the system services. I cant remember how though. I dont really think knowing what apps are running and how many cycles theyre taking is relevant. I guess its because its never a concern with me.

#81733

Hey there guys, i found this VBS script that will get the runnign processes, im sure that if we want to ommit the common processes of windows, someone well ersed in visual basic (or any other language) will be able to add some lines of code to exclude it dont you think?

Anyway, here's a link to it http://www.samurize.com/modules/mydownload...hp?cid=6&lid=64

Hope someone is able to do this.. it would be great...

Seph

#82401

i tried doing it and without knowing ANYTHING about VB, i failed miserably. mebbe we should ask the developer?

#82457

Hello there,

I have succeeded to modify the script resulting the following output:

Total:     32
    0  System Idle Process
    8  System
  152  SMSS.EXE
  176  CSRSS.EXE
  196  WINLOGON.EXE
  224  SERVICES.EXE
  236  LSASS.EXE
  420  svchost.exe
  452  spoolsv.exe
  496  svchost.exe
  512  gearsec.exe
  540  mdm.exe
  572  nvsvc32.exe
  648  regsvc.exe
  660  mstask.exe
  704  stisvc.exe
  756  WinMgmt.exe
  788  svchost.exe
  872  explorer.exe
  928  TrayServer.exe
  904  EM_EXEC.EXE
 1076  qttask.exe
 1120  EM_EXEC.EXE
 1084  rundll32.exe
  896  wbload.exe
  864  rundll32.exe
 1128  IWatch.exe
  908  Rainlendar.exe
 1100  Rainmeter.exe
  984  VB6.EXE
  640  Mobydock.exe
  544  IEXPLORE.EXE

should look ok on a fixed font. Code:

Function RunningProcess()
 cnt = 0
 Set rps = GetObject("winmgmts:{impersonationLevel=impersonate}" _
   "!\\.\root\cimv2").ExecQuery("SELECT * FROM Win32_Process")
 For Each Item In rps
 cnt = cnt + 1
   RunningProcess = RunningProcess + Format(CStr( _
     (Item.processid), "@@@@@@") + vbTab + Item.Name + vbCrLf
 Next
 RunningProcess = "Total: " + Format(CStr(cnt), "@@@@@@") + vbCrLf + _
   RunningProcess
End Function

However, I am not sure yet on how to pick desktop processes from

script - if also anyone can help me in finding out process usage, I could

complete the sorting and displaying to your wish.

HTH,

herd

#84062