meebo Posted January 11, 2009 Share Posted January 11, 2009 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 More sharing options...
keen Posted January 12, 2009 Share Posted January 12, 2009 (edited) 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 January 12, 2009 by keen [center]Kesne's Bar & Grill[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now