halgboy_tbc
2013-03-29 18:01:21
I want to, with a string of words, pick out one of the words or multiple words (the goal to find a username which was be one or more words).
Here is an example of what I am trying to do:
For instance:
"Wizz Up has logged in."
S:='Wizz Up has logged in.' {String would be from gettextatexwrap}
How can I get the user name (Wizz Up) from the string?
So I have came up with making the string into a tstringarray and search high to low(text) for "has (The word not the chars h,a,s)" and then, in this case, backtrack from there and find the two words (in this case) that make up the username. But I do not know how to make the words into an array.
—
A seperate issue and another thing that I am trying to do is to find some skill levels of the player who was just found.
I would be using getpage and trying to find the Construction level from that string. I will maybe try doing this the same way as finding the username? But does anyone have tips?
Thanks
Here is an example of what I am trying to do:
For instance:
"Wizz Up has logged in."
S:='Wizz Up has logged in.' {String would be from gettextatexwrap}
How can I get the user name (Wizz Up) from the string?
So I have came up with making the string into a tstringarray and search high to low(text) for "has (The word not the chars h,a,s)" and then, in this case, backtrack from there and find the two words (in this case) that make up the username. But I do not know how to make the words into an array.
—
A seperate issue and another thing that I am trying to do is to find some skill levels of the player who was just found.
I would be using getpage and trying to find the Construction level from that string. I will maybe try doing this the same way as finding the username? But does anyone have tips?
Thanks