Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
String manipulation question
Forums
Active Threads
Search
Who's Online
Help
Print Thread
String manipulation question
#
249122
15/11/14
08:32 AM
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?
Copy Link to Clipboard
Re: String manipulation question
#
249123
15/11/14
08:36 AM
J
JuanAm
JuanAm
J
Try this:
Code:
$gettok($5-,5-,32)
Copy Link to Clipboard
Re: String manipulation question
#
249125
15/11/14
08:39 AM
Joined:
Mar 2010
Posts: 144
UK
Masoud
Vogon poet
Masoud
Vogon poet
Joined:
Mar 2010
Posts: 144
UK
Originally Posted By: JuanAm
Try this:
Code:
$gettok($5-,5-,32)
Guess that was supposed to be: $gettok(
$1-
, 5-, 32)
Nothing...
Copy Link to Clipboard
Re: String manipulation question
Masoud
#
249126
15/11/14
08:55 AM
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.
Copy Link to Clipboard
Re: String manipulation question
#
249127
15/11/14
08:57 AM
S
Sakana
Sakana
S
Thanks, got it working 8)
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage