Sign in to follow this  
Followers 0
Lemures

ControlGetText when there is a LOT of text

3 posts in this topic

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



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', '')

[center]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.[/center]

Share this post


Link to post
Share on other sites

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  
Followers 0