Jump to content
Sign in to follow this  
Gar

Algorithm for capturing text lines?

Recommended Posts

Gar

I need to capture text lines in a game's text box and process each new line only once without missing any lines. There are three problems.

1: The text scrolls off the 'back end' once the large (1000 lines) window fills up. The oldest lines disappear from the window.

2: Lines are not unique. They can be repeated any number of times and probably will be, by adversaries.

3: Lines can come at any speed, so I cannot simply take the newest line as it could be the same for ten hours or a hundred lines could come at once.

Anyone have any ideas on how to do this logic-wise?

Share this post


Link to post
Share on other sites
jokke

count the number of lines, then go through them one by one ?


UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.

Share this post


Link to post
Share on other sites
Gar

count the number of lines, then go through them one by one ?

I would, but the number eventually maxes and stays at 1000 and old lines are erased.

Share this post


Link to post
Share on other sites
SmOke_N

What game are you attempting this on. Chances are someone has already created a viable solution for your needs.


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

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.