Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ MUSHclient, check for new version
MUSHclient, check for new version
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Thu 17 Apr 2003 09:57 PM (UTC) |
Message
| The intended method of finding out about new versions is to subscribe to the forum section where announcements about new versions of MUSHclient appear.
Because this section is only used to announce new versions, then you should automatically get an email within minutes of the new version being released. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Shadowfyr
USA (1,790 posts) Bio
|
Date
| Reply #1 on Thu 17 Apr 2003 11:35 PM (UTC) |
Message
| Ah.. Then he could set it to look at that forum for the new version. ;)
One suggestion Krenath. You could probably execute a call of some sort to auto-download it as well. Just pass the filename and ftp address to a IE windows or maybe if the person has something like Getright installed you could pass the link direct to the download manager. lol But yes, you should do an http: read of the forum to see if a new version is there, since the one uploaded may not be a 'final' version until specifically announced. ;) This is especially true if you later try to use the same technique with an ftp or http server that won't let you read the directory list.
Of course if Nick really doesn't want us doing this... | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Fri 18 Apr 2003 12:16 AM (UTC) |
Message
| New versions tend to get released in bursts - first a major upgrade, then a few tweaks and bug fixes, and then nothing for a few months.
So, I would prefer to use the forum notification method.
Imagine, if you will, 1000 MUSHclient users checking for a new version every day, that is somewhat increased network bandwidth, for no real gain.
If it was done once a week it probably isn't a big problem. :) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Krenath
USA (76 posts) Bio
|
Date
| Reply #3 on Fri 18 Apr 2003 12:53 AM (UTC) |
Message
| Well, the intended design was for the subroutine to only be called when the script is processed on startup of MUSHclient. Since I leave MUSHclient open and connected for extremely long periods of time, I, personally, wouldn't be hitting the FTP server very often at all.
Additionally, the subroutine does nothing other than open a connection, list the directory, and immediately disconnect, so the load is intended to be minimal.
Additionally, I simply wanted to see how easy it would be to accomplish such a thing. In the future, an automated FTP download could be used to handle fetching files from other locations, such as automatic download of pictures or sound files.
That, and the parsing of XML... I have plans for creating some code to dump information in XML format from the MUSH to the client so the client can pass it to graphical user interface code.
For ease of catching such information with triggers, the MUSH could send a 'start of XML' header, preface each line with an XML> prefix, and send an 'end of xml' footer after all the lines have been captured and it's time to process the data. |
- Krenath from
bDv TrekMUSH
ATS TrekMUSH
TNG TrekMUSE
TOS TrekMUSE | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sun 20 Apr 2003 05:14 AM (UTC) |
Message
| Krenath,
Unfortunately, your code, which was interesting, seems to have disappeared in a database glitch, see top of this page.
If you want to repost it, I think others would be interested.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Krenath
USA (76 posts) Bio
|
Date
| Reply #5 on Wed 30 Apr 2003 03:49 PM (UTC) |
Message
| Here's the original subroutine. It depends on downloading and installing ASP/ActiveX components which are freely downloadable from http://www.chilkatsoft.com/. The necessary components are their FTP component and their ASP XML component.
If you use this code, please use it on a timer that's scheduled to fire no more often than once a day. We do not need to pound the MUSHClient FTP server into oblivion.
Quote:
Sub FTPCheck
Dim NewVersion
Dim FTP
Dim Listing
SET FTP=CreateObject("ChilkatFTP.ChilkatFTP")
Set XML = CreateObject("AspXml.AspXml")
FTP.Hostname = "ftp.gammon.com.au"
FTP.Connect()
If Ftp.IsConnected then
FTP.ChangeRemoteDir "mushclient"
XML.LoadXML FTP.GetCurrentDirListing("mushclient*.exe")
Set rowNode = XML.FirstChild()
while (Not (rowNode Is Nothing))
Set colNode = rowNode.FirstChild()
FileName =colNode.Content
FileVersion = replace(""&Replace(""&filename,"mushclient",""),".exe","")
If cint("0"&FileVersion) > (100*world.version) then
NewVersion = True
world.note "There is a new MUSHclient version (" & cint("0"&Fileversion)/100 & ") Available!"
end if
Set rowNode = rowNode.NextSibling()
wend
FTP.Disconnect()
else
world.note "Failure connecting to MUSHclient FTP server."
end if
End Sub
|
- Krenath from
bDv TrekMUSH
ATS TrekMUSH
TNG TrekMUSE
TOS TrekMUSE | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #6 on Sat 10 May 2003 04:51 PM (UTC) |
Message
| Oh, interesting... How did you create the control in order to reference it? |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #7 on Sat 10 May 2003 05:03 PM (UTC) |
Message
| Also, can I respond to events with that method? |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Krenath
USA (76 posts) Bio
|
Date
| Reply #8 on Tue 13 May 2003 11:17 PM (UTC) |
Message
| I download the controls in question from http://www.chilkatsoft.com/. They're freeware.
But if you use something like Visual Basic or Visual C++, it's fairly simple to create your own activeX controls. I won't really go into it here, however. It takes a little bit of explaining, longer than it takes to make a sample control, actually. |
- Krenath from
bDv TrekMUSH
ATS TrekMUSH
TNG TrekMUSE
TOS TrekMUSE | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #9 on Wed 14 May 2003 09:56 AM (UTC) |
Message
| Yes, making an ActiveX control is really simple (I have made a few), but what I'm asking is whether one can link to them via VBScript or another language, and work with them like in VB. I don't see how you could intercept their events, but even only calling functions would be enough in some cases...
Does anyone have more info on the subject? |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Krenath
USA (76 posts) Bio
|
Date
| Reply #10 on Wed 14 May 2003 01:31 PM (UTC) |
Message
| No, you wouldn't be able to intercept their events, but that's normal for Active Server Pages web development, so ActiveX components designed for use in ASP pretty much take this into account. What you're limited to is accessing functions, properties, and methods of the component.
To create a reference to a component under VBscript in MUSHclient, you just use the CreateObject("<component.name>") function to return a reference to the component and make use of it from there. |
- Krenath from
bDv TrekMUSH
ATS TrekMUSH
TNG TrekMUSE
TOS TrekMUSE | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
25,151 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top