Page 1 of 1
chat log
Posted: April 19th, 2007, 1:50 pm
by danzar
Stay = 1
Do While (Stay = 1)
Do While Not (Infile.atEndOfStream ) ' do while not EOF
Line = Infile.ReadLine ' Read a Line from InFile
If Instr (Line, "is already over") Then
Stay = 0
end if
Ok my problem is that the scipt makes the log file but it dosn't enter the if statement when the text is true.
The text is in the log.txt but it just seems its not reading it..
BTW i copyed this block from someone else script
danzar
Posted: April 19th, 2007, 8:54 pm
by gheezer
Danzar, try:
If Instr(Line, "is already over") > 0 Then
or
If Instr(1, Line, "is already over") > 0 Then
how can i
Posted: April 27th, 2007, 4:39 pm
by danzar
I have figured out what i am doing wrong.. My script it reads the whole text file everytime i start the the script. So i need to knwo how to make it just read like the last 3 lines or just theres abouts.
thanks
danzar
Posted: April 27th, 2007, 7:39 pm
by danzar
i got it figured out. i had a sleep delay killing me in a if statement that was making me think it wasnt responding right..
Danzar
Posted: April 28th, 2007, 12:04 pm
by danzar
how would i make it so that the read line would not reread the same line twice?
Posted: April 28th, 2007, 1:04 pm
by wyvernx
HMm.. i looked at it. The problem is it needs a small update.
It is missing the chat channel. Ie [General], [Combat] etc at the very beginning of the line. As a temp fix, remove duplicate messages from each channel. I should have fix up by tomorrow though.
I would not read the whole log every time. I would use a FSO file object (or the built in xum log reading commands) so that it only reads "NEW" lines. You can call it over and over, and it will return "" unless there is new text.
Posted: April 28th, 2007, 3:58 pm
by danzar
Ok Awsome thank you for your help.
Danzar
BTW get my account back tomorrow woohoo
Posted: April 30th, 2007, 6:39 pm
by wyvernx
May 1, 2007 - VGExtreme v1.10
-- Bugfix VG chat log now logging the correct chat window name
-- Added Crafting:
Crafting functions are starting to go in. Most are self explanatory. But, holler if you need help!
'Function Crafting_State
'Function Crafting_StepHealth(step)
'Function Crafting_ComplicationHealth(step)
'Function Crafting_StageCount
'Function Crafting_StepCount
'Function Crafting_Stage
'Function Crafting_ActionPointsMax
'Function Crafting_ActionPointsLeft
'Function Crafting_Quality
'Function Crafting_QualityLetter
'Function Crafting_CurrentStageHealth
'Function Crafting_RecipeId
'Function Crafting_RecipeSectionName
'Function Crafting_RecipeNumUses
'Function Crafting_RecipeDescription
'Function Crafting_RecipeName
'Function Crafting_ActionDescription(step)
'Function Crafting_RemedyDescription(step)
'Function Crafting_ToolTipDescription
'Function Crafting_ToolTipName
Posted: April 30th, 2007, 9:38 pm
by danzar
AWSOME MAN!!~