| Message |
And if you prefer not to use Lua as your main scripting language, just save the stuff below and make a plugin:
 |
To save and install the Installer_sumcheck plugin do this:
- Copy between the lines below (to the Clipboard)
- Open a text editor (such as Notepad) and paste the plugin into it
- Save to disk on your PC, preferably in your plugins directory, as Installer_sumcheck.xml
- Go to the MUSHclient File menu -> Plugins
- Click "Add"
- Choose the file Installer_sumcheck.xml (which you just saved in step 3) as a plugin
- Click "Close"
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, August 19, 2006, 2:50 PM -->
<!-- MuClient version 3.78 -->
<!-- Plugin "Installer_sumcheck" generated by Plugin Wizard -->
<muclient>
<plugin
name="Installer_sumcheck"
author="Nick Gammon"
id="4a267cd69ba59b5ecefe42d8"
language="Lua"
purpose="Sumchecks the MUSHclient installer"
date_written="2006-08-19 14:48:45"
requires="3.74"
version="1.1"
>
<description trim="y">
* Type 'md5sum' to activate.
* Navigate to the mushclientXXX.exe file you downloaded.
(The XXX will be the version number).
* Click 'Open'.
The resulting message (in the output window) will show you the sumcheck.
This should agree with the sumcheck shown on the web page announcing the MUSHclient version.
</description>
</plugin>
<!-- Aliases -->
<aliases>
<alias
match="md5sum"
enabled="y"
send_to="12"
sequence="100"
>
<send>name = utils.filepicker ("Choose file", "mushclient*.exe", "exe",
{ exe = "MUSHclient installers" } )
if name then
f = io.open (name, "rb")
if f then
print ("sumcheck of", name, "=", string.lower (utils.tohex (utils.md5 (f:read ("*a")))))
f:close ()
end -- if opened file ok
end -- if have name
</send>
</alias>
</aliases>
<script>
ColourNote ("cyan", "", "Type 'md5sum' to sumcheck a file.")
</script>
</muclient>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|