Simon Posted September 10, 2005 Report Share Posted September 10, 2005 I sometimes chat on multiple servers and for my GUI have the name of the server displayed in an edit box on a docked dialog using on connect did -ra $dname <id> %sel.serv etc etc. I'm trying to use a loop to capture the server name and display it to the dialog ID when I toggle between servers. Can someone help me clean up this snippet please? alias con.list { %r = 1 while %r = ($server(%r)) { .did -ra bottom 4 Server: $server(%r) } inc %r } Thanks in advance Link to comment Share on other sites More sharing options...
The Gate Keeper Posted September 10, 2005 Report Share Posted September 10, 2005 on *:ACTIVE:*: { if ($active == Status Window) { did -ra bottom 4 Server: $server } } That will do it for whenever you click on a server window. No need for loops Link to comment Share on other sites More sharing options...
Simon Posted September 10, 2005 Author Report Share Posted September 10, 2005 D'oh I'm such an idiot - I had the same thing only I was using it on the wrong event :$ I feel like an idiot. Thanks David Link to comment Share on other sites More sharing options...
The Gate Keeper Posted September 11, 2005 Report Share Posted September 11, 2005 lol no worries simon. 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