Mumms Posted May 7, 2010 Share Posted May 7, 2010 Here is what i am doing. I'm opening the log file for the game i play. Im then reading the last line of the log file to see it someone, or myself has typed "@vp" If they have the i will type, it worked. It seems to be reading the log file properly, but it never works because it is reading the whole line of code. So here is my question. Is it possible to get it to search the line that it gets for only the string of "@vp". While 1 FileOpen("qconsole.log", 0) $line = FileReadLine($file, -1) If $line = "@vp" Then Send("t it worked.") Send("{ENTER}") EndIf FileClose($file) Wend This is what the line looks like (when someone chats) in the log file if it helps: ^4Trime | Team.v!p |^7: ^2^*@vp But everyone's name and the color they type with is different, (so i can't break it into multiple strings with *) Thanks you! Link to comment Share on other sites More sharing options...
DW1 Posted May 7, 2010 Share Posted May 7, 2010 (edited) Look at: StringInStr() Edited May 7, 2010 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Mumms Posted May 7, 2010 Author Share Posted May 7, 2010 Thank you so much! 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