mIRC Homepage
Posted By: Sakana String manipulation question - 15/11/14 08:32 AM
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?
Posted By: JuanAm Re: String manipulation question - 15/11/14 08:36 AM
Try this:
Code:
$gettok($5-,5-,32)
Posted By: Masoud Re: String manipulation question - 15/11/14 08:39 AM
Originally Posted By: JuanAm
Try this:
Code:
$gettok($5-,5-,32)


Guess that was supposed to be: $gettok($1-, 5-, 32)
Posted By: JuanAm Re: String manipulation question - 15/11/14 08:55 AM
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.
Posted By: Sakana Re: String manipulation question - 15/11/14 08:57 AM
Thanks, got it working 8)
© mIRC Discussion Forums