Project

General

Profile

Plugins » History » Revision 22

Revision 21 (Per Amundsen, 05/28/2017 04:13 PM) → Revision 22/27 (Per Amundsen, 05/28/2017 04:14 PM)

h1. Plugins 

 See [[Scripting DLL|here]] for native DLL support. 

 See https://www.adiirc.com/docs/ for API documentation. 

 See https://dev.adiirc.com/boards/4/topics/252 for an example plugin. 

 Docs can also be downloaded as a Help file here https://www.adiirc.com/docs/Documentation.chm. 

 If you want an API for something not covered by the current API, please "open open an issue":https://dev.adiirc.com/projects/adiirc/issues/new. issue. 

 You can find the current AdiIRCAPI.dll in your [[Config_Files|AdiIRC config folder]] or "here":https://www.adiirc.com/AdiIRCAPI.dll, this is the glue between AdiIRC and the plugin. 

 Plugins can load and use any DLL's including referencing all .NET frameworks DLL's and do P/Invoke, just like a regular .NET program. 

 If you get a "System.NotSupportedEception: An attempt was made to load an essembly from a network location" error, try unblock the dll file as shown here "here":https://blogs.msdn.microsoft.com/drew/2009/12/23/xunit-and-td-net-fixing-the-attempt-was-made-to-load-an-assembly-from-a-network-location-problem/ 

 ----------------------------------------------------------------------------- 

 _Added in 1.8_ 

 */plugins [-luixo] [filename]* 

 With no switches, Opens or focuses the [[Plugins_Dialog|Plugin Manager dialog]]. 

 *Switches* 

 -l - Loads a installed plugin file. 
 -u - Unloads a loaded plugin file. 
 -i - Installs a new plugin to the plugin folder. 
 -x - Uninstalls a installed plugin in the plugin folder. 
 -o - Used with -i, allows overwriting a installed plugin, if the plugin is not loaded. 

 *Parameters* 

 [filename] - Filename/path of the plugin. 

 *Example* 

 <pre> 
 ; Installs the plugin 'MyPlugin.dll' from the folder 'C:\User<\Nick\Desktop' to the Plugins folder. 
 /plugins -i C:\User<\Nick\Desktop\MyPlugin.dll 

 ; Loads 'MyPlugin.dll' 
 /plugins -l MyPlugin.dll 
 </pre>