Jump to content

Working with text


Recommended Posts

Hello. I get the raw text from the control using this code.

ControlGetText($consoleHandle, "", "Edit2")

However, I only need the last lines, thus I am forced to write all this text into the file and then read the latest lines from the file itself.

FileWrite($path, ControlGetText($consoleHandle, "", "Edit2"))
For $i = 0 To ($linesToCheck - 1) Step +1
    $string = FileReadLine($path, _FileCountLines($path) - $i)

Is there any way I can work with the text returned by ControlGetText directly w/o writing it to a file?

I searched for some TextManagement UDF but didn't find any.

Thanks in advance.

Edited by Helixanon
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...