|
|
|
Page 1 of 1 |
[ 9 posts ] |
|
 chat log : VGExtreme General Discussion
|
|
Posted: April 19th, 2007, 1:50 pm
|
|
|
|
danzar
Total Posts: 527
Location: NC, USA
Joined: May 4th, 2005, 8:36 pm
danzar's Reps: 7
|
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
|
|
|
|
gheezer
gheezer's Reps:
|
Danzar, try:
If Instr(Line, "is already over") > 0 Then
or
If Instr(1, Line, "is already over") > 0 Then
|
|
|
|
|
Posted: April 27th, 2007, 4:39 pm
|
|
|
|
danzar
Total Posts: 527
Location: NC, USA
Joined: May 4th, 2005, 8:36 pm
danzar's Reps: 7
|
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
|
|
|
|
danzar
Total Posts: 527
Location: NC, USA
Joined: May 4th, 2005, 8:36 pm
danzar's Reps: 7
|
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
|
|
|
|
danzar
Total Posts: 527
Location: NC, USA
Joined: May 4th, 2005, 8:36 pm
danzar's Reps: 7
|
how would i make it so that the read line would not reread the same line twice?
|
|
|
|
|
Posted: April 28th, 2007, 1:04 pm
|
|
|
|
wyvernx
Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
|
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.
_________________
Use Search first, ask questions later!
|
|
|
|
|
Posted: April 28th, 2007, 3:58 pm
|
|
|
|
danzar
Total Posts: 527
Location: NC, USA
Joined: May 4th, 2005, 8:36 pm
danzar's Reps: 7
|
Ok Awsome thank you for your help.
Danzar
BTW get my account back tomorrow woohoo
|
|
|
|
|
Posted: April 30th, 2007, 6:39 pm
|
|
|
|
wyvernx
Total Posts: 6718
Joined: May 1st, 2004, 4:00 am
wyvernx's Reps: 21
|
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
_________________
Use Search first, ask questions later!
|
|
|
|
|
Posted: April 30th, 2007, 9:38 pm
|
|
|
|
danzar
Total Posts: 527
Location: NC, USA
Joined: May 4th, 2005, 8:36 pm
danzar's Reps: 7
|
|
|
|
|
Who is online |
|
Users browsing this forum: No registered users and 15 guests |
|
|
|