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
Joined:
Sep 2014
Posts: 259
S
Sakana
OP
Fjord artisan
OP
Sakana
Fjord artisan
S
Joined:
Sep 2014
Posts: 259
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
Sakana
#
249123
15/11/14
08:36 AM
Joined:
Nov 2014
Posts: 149
J
JuanAm
Vogon poet
JuanAm
Vogon poet
J
Joined:
Nov 2014
Posts: 149
Try this:
Code:
$gettok($5-,5-,32)
Copy Link to Clipboard
Re: String manipulation question
JuanAm
#
249125
15/11/14
08:39 AM
Joined:
Mar 2010
Posts: 146
UK
Masoud
Vogon poet
Masoud
Vogon poet
Joined:
Mar 2010
Posts: 146
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
Joined:
Nov 2014
Posts: 149
J
JuanAm
Vogon poet
JuanAm
Vogon poet
J
Joined:
Nov 2014
Posts: 149
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
JuanAm
#
249127
15/11/14
08:57 AM
Joined:
Sep 2014
Posts: 259
S
Sakana
OP
Fjord artisan
OP
Sakana
Fjord artisan
S
Joined:
Sep 2014
Posts: 259
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
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage