how to click YES in script for pop up window when disconnected?

Posted by Uniax on Wed 26 Nov 2014 09:47 AM — 4 posts, 14,444 views.

#0
Hi Nick,

in the mud I played, I need to disconnect and then re-connect when there are inputs from script, when disconnect, Mushclient will pop up a yes/no box showed "the connection to xxx is not open. Attempt to reconnect?", is there any way to click yes or no in script? Thanks a lot.
USA Global Moderator #1
Can't you just reconnect before sending any new input?
Australia Forum Administrator #2
You can't click YES in the box in a script), but as Fiendish says, the script can detect that you are not connected, and then connect for you. You could do this using the "wait" module, so you could wait until the connection is fully established.
#3
Got it, thanks Nick and Fiendish!

I will put it in wait module.