mIRC Home    About    Download    Register    News    Help

Print Thread
#66671 05/01/04 09:24 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
//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:

#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

#66673 06/01/04 12:08 AM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
ty smile


Link Copied to Clipboard