Advertisement
OrFeAsGr

CPU Usage Finder For mIRC

Nov 28th, 2016
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.32 KB | None | 0 0
  1. alias cpu {
  2.   write -c cmd.bat
  3.   write -c cpu.txt
  4.   write cmd.bat wmic cpu get loadpercentage > $+ $mircdir $+ cpu.txt
  5.   run -n cmd.bat
  6.   echo -at Please wait a sec...
  7.   .timer 3 1 cpucheck
  8. }
  9.  
  10.  
  11. alias cpucheck {
  12.   if ($lines(cpu.txt)) {
  13.     echo -at CPU Usage: $+($read(cpu.txt, 2),%)
  14.     write -c cpu.txt
  15.   }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement