I am trying to configure Netscape to use Mushclient as the default program for opening a telnet connection. Here's the problem:
I can click on Preferences|Navigator|Applications, then find the "URL: Telnet Protocol" assocation and edit it.
I've tried entering:
"C:\Program Files\MUSHclient\MUSHclient.exe" %1
...but that won't work. The problem is that the argument that gets passed is in the format: "216.218.240.103:10000", but MushClient will only open an address and port number if they are passed like this "216.218.240.103 10000". In other words, the port number must be passed as a second argument, not part of the first.
I don't know if it is possible to tell Netscape to rip off the port number from "216.218.240.103:10000" and pass it as a second argument... I doubt it.
Nick, I suppose you should consider this a suggestion to allow mushclient to accept a URL in this format: "216.218.240.103:10000", unless you have another solution to this problem.
Hmm. I would definitely suggest changing that. Standard port and address info is always 'address:port'. I find it very unlikely that any program would pass these things to another by sliptting them up. On the other hand : has special meaning in DOS if I remember right and coding something into the program to work around the problem could be complicated. I think : is a delimiter or something, so it may not even be seeing the port number. You could try using:
"C:\Program Files\MUSHclient\MUSHclient.exe" "%1"
since then windows 'should in theory' treat it as a string being sent, rather than different bits of data. Whether MUSHClient will then split it up correctly or not is another matter.
Still doesn't work. Indeed, Mushclient fail to connect message displays too may quotes, so they are prolly being handed over as literal argument characters...
Oh, and Mushclient displays the full URL, including the port number in the error. It's getting the port number, it just isn't seperating it from the URL.
Its great to finally be able to click on a telnet link in Netscape and have it parse correctly, but a few problems may still remain. :)
Is it possible to pass the /noauto switch to the standard telnet setup? Currently, I use C:\MUSH\MushClient\MUSHclient.exe %1 /noauto
That does open a link I click on, but it also opens all worlds in my startup list, connecting me twice if I already have an instance of MUSHclient running.
If that isn't possible, even better would be if MUSHclient is open when you click on a telnet link, the new world opens in the existing copy. Maybe that could be a user choice?