AlexRapso commented on a Page, Log Viewer  -  Jun 08, 2010

I can't get this to find any of my logs. I go into my mIRC program file and the logs are there but this log viewer won't show any of the logs. Is it something I did wrong or is it something else?

You had the same problem as me but i edited it abit i will show you what i have.

alias loader { 
  set %logpath C:\Users\Alex Rapso\AppData\Roaming\TraScript\logs\omerta\
  return $findfile(%logpath,*.log,0,1,aline -l @Log $nopath($1-)) 
}

alias viewer {
  window -Skal15 @Log 300 150 500 300 @Log Tahoma 12 | titlebar @Log Viewer
  aline 1 @Log 0,10 Logs !  $loader Log(s) Were Found
  aline 1 @Log -
  if ($1 != $null) { seefile 0 $1- }
}

alias seefile {
  if ( $isfile($2-) ) {
    loadbuf -rp @Log $+(",$2-,")
    if ( $1 == 0 ) { sline @Logs 10 | sline @Log 10 }
    else {
      sline @Log $calc($1 + 2) | sline @Log $calc($1 + 2)
      rline @Log $1 $line(@Log,$1)
    }
    if ( $fline(@Log,$nopath($2-),1,1)  ) { sline -l @Log $ifmatch }
  }
}
on *:signal:removefile: { .remove $+(",$3-,") | dline -l $1 $2 }

menu @Log {
  dclick: { if ( $1 ) { seefile 1 $+(%logpath,$line(@Log,$1,1)) } }
  -
  Update: { window -c @Log | viewer }
  -
  Close: { window -c @Log }
  -
}

menu * {
  Log Viewer:viewer
}

i changed the operator $logdir to variable %logpath and set the path to my log folder and changed all the other $logdir operators to %logpath and it should work hope i helped :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.