mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#52662 08/10/03 09:12 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
$remove($right($dll($scriptdirmoo.dll,cpuinfo,_),9),$chr(40),$chr(41),$chr(37),Load) would return XX what that one does is reads only the last 9 characters which are always
(XX% LOAD) then strips off the ( ) % and the LOAD

that should return the same thign on any system


D3m0nnet.com
#52663 17/10/03 06:47 PM
Joined: Oct 2003
Posts: 50
T
Babel fish
Offline
Babel fish
T
Joined: Oct 2003
Posts: 50
ok, I know this topic is a bit old, but I think this one always works, and it's shorter too :tongue::
Code:
$gettok($gettok($dll($scriptdirmoo.dll,cpuinfo,_),2,40),1,32)

#52664 17/10/03 07:09 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
returns correctly for me ... good code there.


D3m0nnet.com
Page 2 of 2 1 2

Link Copied to Clipboard