Jump to content
Sign in to follow this  
meebo

Interact with game's console.

Recommended Posts

meebo

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.

Share this post


Link to post
Share on other sites
keen

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]

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  

×