Jump to content

Listing servers


Simon

Recommended Posts

Hello, I'm trying to get a code that will display in a docked dialog what serevr I am currently using.

 

 

Normally I use:

did -ra $dname $server

When I connect to a server, but, lately I've been using up to 3 servers at a time. HOw can I make it so that when I toggle between servers it w ill display the current server in my dialog?

 

Thanks in advance :)

 

PS - I tried a lame loop but had to keep hitting ctrl/break :P

Edited by Vegeta
Link to comment
Share on other sites

try

on *:active:*: {  did -ra dialogname dialogid $server }

 

Nopers :( I think I had tried that some time ago to no avail. I think it would need to be some sort of loop but I can't figure it out :)

 

Thank you anyway, err0rbob

Link to comment
Share on other sites

Nope, you don't need a loop. What err0r posted is what I use in my statusbar for my script's code. Works perfect really.. I'm using DCX though, so I don't use /did -ra stuff.... I use /xdid crap.

 

IPB Image

 

Works whenever I go to windows on different servers like it should be. I would be happy to share the code...but it's exactly the same as err0rs up there ^^ lol.

Link to comment
Share on other sites

EDIT- Fixed and it is working. Thank you. I could have had this working all along lol but a simple piece of logic escaped me! :P

Thanks again :)

Edited by Vegeta
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...