Name LoadPlugin
Type Method
Summary Loads a plugin from disk
Prototype long LoadPlugin(BSTR FileName);
Description Loads a plugin file from disk. This is intended to let plugins load other plugins if desired. For example, you could make a "scan plugin directory" plugin, that loads all plugins found in a particular directory.

You might use "IsPluginInstalled" to see if a particular plugin is already installed.

If the plugin cannot be loaded an error window will open describing the problem with the plugin (eg. XML parsing error).

However if the problem is simply that the plugin file cannot be found, then no window will open.

Note: Available in MUSHclient version 3.23 onwards.
VBscript example
world.loadplugin "c:\mushclient\plugins\plugin_list.xml"
Jscript example
world.loadplugin ("c:\\mushclient\\plugins\\plugin_list.xml");
PerlScript example
$world->loadplugin ("c:\\mushclient\\plugins\\plugin_list.xml");
Returns ePluginFileNotFound: Plugin file not found
eProblemsLoadingPlugin: Parsing or other problem in plugin file - see error window
eOK: Loaded OK

See also ...