Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Kalie
Beginner


Joined: 23 Jun 2008
Posts: 22

PostPosted: Mon Jan 26, 2009 10:32 pm   

#CMD Disconnect - How do I deal with the popup window from the command line?
 
I would like to be able to disconnect from the command line (so I can trigger it, ect.).

#CMD Disconnect
or
#MENU {File|Disconnect}

starts the process but then I get a popup window called Confirm (Yes, No, Cancel), which I haven't been able to deal with from the command line.

I've tried:

#CMD Disconnect;#CMD Yes
#CMD Disconnect;#MENU {Confirm|Yes}
#CMD {Disconnect|Yes}

And a few other variations. Any ideas? Thanks guys.
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Mon Jan 26, 2009 11:19 pm   
 
You can toggle autoconnect off in the preferences, or you can toggle it scriptually using

#call %pref(AutoConnect, 0)

and

then #call %pref(AutoConnect, 1) to reset it when you're done. (Possibly set autoconnect on in an onconnect event, and then disable it in your disconnect alias.)

Edit: Although if your game has a command like "quit" it's easier to just trigger the line received when you quit on purpose to turn off autoconnect, and then use quit to, well, quit.
Reply with quote
Kalie
Beginner


Joined: 23 Jun 2008
Posts: 22

PostPosted: Mon Jan 26, 2009 11:22 pm   
 
That's not quit the problem I'm having although I think I'll end up using some of that. :)

Try the command #CMD Disconnect

And then you'll see my problem. There's a popup window that I haven't been able to "answer" from the command line.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Jan 27, 2009 12:54 am   
 
You want the #DISCONNECT command.
_________________
Asati di tempari!
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Tue Jan 27, 2009 1:52 am   
 
Tech wrote:
You want the #DISCONNECT command.

Is that a Zugg original do you think? I'm inclined to think that Vijilante must have been a bear with a sore head during the help document rewrite.
_________________
Taz :)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Jan 27, 2009 3:20 am   
 
That's a Zugg original ;)
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Tue Jan 27, 2009 4:37 am   
 
Excellent! Good skills!
_________________
Taz :)
Reply with quote
Kalie
Beginner


Joined: 23 Jun 2008
Posts: 22

PostPosted: Tue Jan 27, 2009 2:29 pm   
 
Thanks guys! That works perfectly.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net