brokenjade4ever Posted December 14, 2006 Share Posted December 14, 2006 (edited) 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 December 14, 2006 by brokenjade4ever Link to comment Share on other sites More sharing options...
mikehunt114 Posted December 14, 2006 Share Posted December 14, 2006 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] Link to comment Share on other sites More sharing options...
BigDod Posted December 14, 2006 Share Posted December 14, 2006 $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 Link to comment Share on other sites More sharing options...
brokenjade4ever Posted December 14, 2006 Author Share Posted December 14, 2006 thank you very much for the suggestions, now i have a way better idea on how to implement that Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now