S0RD3N Posted October 21, 2005 Report Share Posted October 21, 2005 Hey, I'm having a little problem with my toolbar. I figured instead of having a custom dialog showing the server list (since mIRC's is just fine and dialogs would be very limited and small for the list) I would just put the /list command on a button in my toolbar. Yeah, it doesn't work too well. Here's my coding: on *:dialog:toolbar:sclick:1:{ ;Set the buttons id in %click var %click $did($dname,1).sel ;Make the events happen; Buttons start at "2" if (%click == 2) return if (%click == 4) .list if (%click == 6) $dialog.open(about) } Now let me explain the situation. I join a server. Click it and it works perfectly. Great! So now I connect to another server and click the button again. It brings up the list for the first server. How can I fix this? Thanks in advanced, -S0RD3N Link to comment Share on other sites More sharing options...
Nimbus03 Posted October 21, 2005 Report Share Posted October 21, 2005 put scid $activecid before list on *:dialog:toolbar:sclick:1:{ scid $activecid ;Set the buttons id in %click var %click $did($dname,1).sel ;Make the events happen; Buttons start at "2" if (%click == 2) return if (%click == 4) .list if (%click == 6) $dialog.open(about) } Link to comment Share on other sites More sharing options...
The Gate Keeper Posted October 21, 2005 Report Share Posted October 21, 2005 (edited) on *:dialog:toolbar:sclick:1:{ ;Set the buttons id in %click var %click $did($dname,1).sel ;Make the events happen; Buttons start at "2" if (%click == 2) return elseif (%click == 4) { scid $window($active).cid | .list | scid -r } elseif (%click == 6) $dialog.open(about) } try that. Edited October 21, 2005 by The Gate Keeper Link to comment Share on other sites More sharing options...
S0RD3N Posted October 22, 2005 Author Report Share Posted October 22, 2005 Still doing the same thing guys. Link to comment Share on other sites More sharing options...
Ozzy10 Posted October 22, 2005 Report Share Posted October 22, 2005 is your script on multiple servers ? if its multi server then try this /scid $window($active).cid list Link to comment Share on other sites More sharing options...
S0RD3N Posted October 22, 2005 Author Report Share Posted October 22, 2005 yeah it's on multiple servers but only gives me the list for the first server I ever joined.... And the /scid $window($active).cid list doesn't work. I had this problem when I did a dialog list too. Link to comment Share on other sites More sharing options...
Ozzy10 Posted October 22, 2005 Report Share Posted October 22, 2005 have you tried /server list /server being the one you want to list Link to comment Share on other sites More sharing options...
S0RD3N Posted October 22, 2005 Author Report Share Posted October 22, 2005 I don't understand... I tried /server list /irc.server.net list and they both don't work.. what are you trying to say? lol Link to comment Share on other sites More sharing options...
Angelia Posted October 22, 2005 Report Share Posted October 22, 2005 when in doubt, cheat editbox /list $crlf Link to comment Share on other sites More sharing options...
The Gate Keeper Posted October 22, 2005 Report Share Posted October 22, 2005 ROFL angelia, good one Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now