mIRC Home    About    Download    Register    News    Help

Print Thread
S
Sakana
Sakana
S
I have the following string

"dota2.exe 9252 Console 1 716.304 KB"

I only want to return 716.304 KB (all the numbers are dynamic). I can't figure out how to manipulate the string since it's not static. Can I somehow use $5- for this?

J
JuanAm
JuanAm
J
Try this:
Code:
$gettok($5-,5-,32)

Joined: Mar 2010
Posts: 144
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 144
Originally Posted By: JuanAm
Try this:
Code:
$gettok($5-,5-,32)


Guess that was supposed to be: $gettok($1-, 5-, 32)


Nothing...
J
JuanAm
JuanAm
J
Originally Posted By: Masoud
Originally Posted By: JuanAm
Try this:
Code:
$gettok($5-,5-,32)


Guess that was supposed to be: $gettok($1-, 5-, 32)


I understood that the string "dota2.exe Console 9252 1 716304 KB" is given by $5-.
Now, if $5- shows only '716,304 KB', the code is as you say.

S
Sakana
Sakana
S
Thanks, got it working 8)


Link Copied to Clipboard