Jump to content
Sign in to follow this  
Ryan LB

Last Line

Recommended Posts

Well, I need help on getting a way to find the last line of a large text string.

----

Example: (this would be the output of the string)

Ryan: Hello

* Ryan waits for Fred.

@Bot: Fred Joins! <-- this line

----

If anyone knows how to do this; Thanks in advance.

-Ryan

Share this post


Link to post
Share on other sites

That would depend on the format of the text, here's an example of @LF seperated text.

$s_text = "Ryan: Hello" & @LF & "* Ryan waits for Fred." & @LF & "@Bot: Fred Joins!"
$a_text = StringSplit($s_text, @LF)
MsgBox(0,"Last Line",$a_text[$a_text[0] - 1])

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

How would I go about seeing the format the text is in? I'm recieving this from a window that I haven't much clue on.

-Ryan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...