mIRC Home    About    Download    Register    News    Help

Print Thread
#10326 09/02/03 09:37 AM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
is it possible to get a chans nicklist into a dialog's listbox. here is an example of a dialog:
Code:
dialog nicklist {
  title "Nicklist"
  size -1 -1 163 110
  option dbu
  box "Nicklist", 1, 4 2 156 104
  list 2, 9 22 147 79, size hsbar vsbar
  edit "#Chan", 3, 9 10 108 10
  button "Get", 4, 118 10 37 10
}
  

you type in the chan's name then press get and it puts the chans nicklist in to the list?

#10327 09/02/03 10:08 AM
Joined: Dec 2002
Posts: 212
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Dec 2002
Posts: 212
did -a $dname 2 $nick(#,%i)
do that while %i <= $nick(#,0)


And all I need now is intellectual intercourse, a soul to dig the hole much deeper
#10328 09/02/03 11:41 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
There's a much faster way to do it, with /filter. Of course, you must be on that channel to get the full nicklist.
Code:
on *:dialog:&lt;dialognamehere&gt;:sclick:4:{
  if $did(3) ischan { filter -loc $ifmatch $dname 2 }
  else return $input(You're not on channel $did(3),oh,Not on channel)
}


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#10329 10/02/03 04:42 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
Thanks Qwerty


Link Copied to Clipboard