Jump to content
Sign in to follow this  
Lemures

ControlGetText when there is a LOT of text

Recommended Posts

Lemures

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.

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
Lemures

Larry, that works perfectly, thank you very much.

Smoke n, thats a good idea, on other apps ill use that.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.