Jump to content

Interact with game's console.


meebo
 Share

Recommended Posts

Hello,

im trying to make a autoit script than can do the following:

It reads out information from a game's console, alsways the last (lowest) line.

Now it should search for a special word/text in that line and send a text string to the console if that

text was found. Than again.

Something like this:

(Pseudo-language)

read("ConsoleTitle");

if(thislineisinthere){
send("the text");
}
[than jumps back and waits for the next line]

This is for a serverprogram. Everytime a player enters it should print a message. Idk how to do that in autoit. I have basic java knowledge.

Link to comment
Share on other sites

It would be much easier to make the first like contain all of the information, most scripts do that because the script requires less programming, it just always reads line one.

But, if you needed to you could use _FileCountLines and FileReadLine to get the information on the last line.

Edited by keen

[center]Kesne's Bar & Grill[/center]

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