mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2006
Posts: 5
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Oct 2006
Posts: 5
Hi,
I want to write the result of a given command to be written into a textfile. At the moment I try this, but that only writes "/users" into the file.

Code:
on 1:join:#Channel: {
  write -c c:\channels.txt /users
}


Anyone an idea?

Greetings,
Flo

Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
you need to do /users then write the results

on 1:join:#Channel:users

on 1:snotice:*:{
write text.txt $1-
}

something like that, i cant check here because my server has...

Raw446 billythekid :USERS has been disabled

btk


billythekid
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Option 1)
Code:
 on 1:join:#channel:{
write -c c:\channels.txt //users
}
 

Option 2)
Code:
 on 1:join:#Channel:{
  if $exists(c:\channels.txt) { remove c:\channels.txt }
  var %a = 1, %b = $nick($chan,0)
  while %a <= %b {
    write c:\channels.txt $nick($chan,%a)
    inc %a
  }
}
 


BTW: This should've been posted in the Scripts & Pop-ups Forum, not Developer Forum.

Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
write -c c:\channels.txt //users ??


$maybe

Link Copied to Clipboard