Jump to content

Algorithm for capturing text lines?


Gar
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

  • Moderators

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.

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...