mIRC Home    About    Download    Register    News    Help

Print Thread
#66671 05/01/04 09:24 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
//run $logdir $+ $mklogfn( $+ $active $+ )

that open the log file for active window.. but how can i halt that and echo somthing if the log dont exist? :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#66672 05/01/04 11:36 PM
Joined: Jan 2004
Posts: 26
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 26
var %tmp $+($logdir, $mklogfn($active))
if (!$isfile(%tmp)) { echo -a TEXT HERE }
else { do commands }

The first line sets a local variable, the second line checks if the file doesn't exsist, if it doesn't, echo's whatever text you want, the third line does the commands you specify if the file does exsist


It's not in the GUI, it's in the source.
#66673 06/01/04 12:08 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
ty smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard