Project

General

Profile

Plugins » History » Version 22

Per Amundsen, 05/28/2017 04:14 PM

1 1 Per Amundsen
h1. Plugins
2
3 5 Per Amundsen
See [[Scripting DLL|here]] for native DLL support.
4
5 20 Per Amundsen
See https://www.adiirc.com/docs/ for API documentation.
6 6 Per Amundsen
7 21 Per Amundsen
See https://dev.adiirc.com/boards/4/topics/252 for an example plugin.
8
9 20 Per Amundsen
Docs can also be downloaded as a Help file here https://www.adiirc.com/docs/Documentation.chm.
10 2 Per Amundsen
11 22 Per Amundsen
If you want an API for something not covered by the current API, please "open an issue":https://dev.adiirc.com/projects/adiirc/issues/new.
12 3 Per Amundsen
13 18 Per Amundsen
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.
14 10 Per Amundsen
15 14 Per Amundsen
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.
16 12 Per Amundsen
17 16 Per Amundsen
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/
18 15 Per Amundsen
19 8 Per Amundsen
-----------------------------------------------------------------------------
20
21 4 Per Amundsen
_Added in 1.8_
22
23 19 Per Amundsen
*/plugins [-luixo] [filename]*
24 3 Per Amundsen
25 19 Per Amundsen
With no switches, Opens or focuses the [[Plugins_Dialog|Plugin Manager dialog]].
26 1 Per Amundsen
27 19 Per Amundsen
*Switches*
28
29
-l - Loads a installed plugin file.
30
-u - Unloads a loaded plugin file.
31
-i - Installs a new plugin to the plugin folder.
32
-x - Uninstalls a installed plugin in the plugin folder.
33
-o - Used with -i, allows overwriting a installed plugin, if the plugin is not loaded.
34
35
*Parameters*
36
37
[filename] - Filename/path of the plugin.
38
39
*Example*
40
41
<pre>
42
; Installs the plugin 'MyPlugin.dll' from the folder 'C:\User<\Nick\Desktop' to the Plugins folder.
43
/plugins -i C:\User<\Nick\Desktop\MyPlugin.dll
44
45
; Loads 'MyPlugin.dll'
46
/plugins -l MyPlugin.dll
47
</pre>