Jump to content
Sign in to follow this  
brokenjade4ever

A somewhat advanced copy from line question

Recommended Posts

Hello, I am new to autoit still and I have been working hard trying to understand the copy logic.

I understand how line copy from txt works.

But here's my question

# Randomname/Randomname A 97.4 1.044 B 97.4 1.044 + 0.000 D/V

My goal is to copy only the middle of the line which is "B 97.4 1.044"

I have no clue on which function or logic to use to achieve that.

Can someone help me in guiding me for a direction that I could take in order to implement that please?

Or maybe provide some example code?

Any suggestion would be greatly appreciated, thank you.

Edited by brokenjade4ever

Share this post


Link to post
Share on other sites

Check out the _StringBetween function in latest version (maybe in beta?).


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

$var = StringMid("# Randomname/Randomname A 97.4 1.044 B 97.4 1.044 + 0.000 D/V", 37, 12)
MsgBox(0, "Extracted Text", $var)



Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  

×
×
  • Create New...