Jump to content
Sign in to follow this  

Help with readline.

Recommended Posts

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

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!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...