Jump to content

ControlGetText when there is a LOT of text


Lemures
 Share

Recommended Posts

I am attempting to make a script that will monitor the log in real time on the Daemon application (www.bf2cc.com) for the BF2 Command & Control program. The only way I have found to do this is to use ControlGetText to get the text out of the onscreen control. However, I am afraid that after hours of play, the log will be HUGE. Is there any way around this? Or will this not prove to be detrimental to the programs ability to run.

Link to comment
Share on other sites

  • Moderators

I generally set the Text null after I've read it on apps that I'm going to be getting information from for a period of time.

$sText = ControlGetText('Win', '', 'ID')
;FileWrite('Keeptrack.log', $sText)
ControlSetText('Win', '', 'ID', '')

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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
 Share

  • Recently Browsing   0 members

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