From WikiChip
Editing mirc/commands/dll

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 11: Line 11:
 
* '''-m''' - Call the procname in a new thread and call the alias <callback> when finished
 
* '''-m''' - Call the procname in a new thread and call the alias <callback> when finished
  
'''Note''': if you pass only a filename, (for example "test.dll", instead of /folder/test.dll or c:\fullpath\test.dll), /dll -u will begin with N=1 looking into the whole list of dlls for a match between $nopath($dll(Nth)) instead of looking into $mircdir only or looking in $mircdir first.
+
'''Note''': if you pass only a filename, (for example "test.dll", instead of /folder/test.dll or c:\fullpath\test.dll), /dll -u will look into the whole list of dlls for such a filename instead of looking into the $mircdir only.
  
 
== Parameters ==
 
== Parameters ==
Line 18: Line 18:
 
* '''[data]''' - The data to pass to that function.
 
* '''[data]''' - The data to pass to that function.
  
Note: If the path or filename contains a space, <libName.dll> MUST be enclosed in doublequotes.
+
== Example ==
 
 
== Examples ==
 
  
 
Look at the {{mIRC|dll|dll}} article to see how to use a dll as well as how to create them.
 
Look at the {{mIRC|dll|dll}} article to see how to use a dll as well as how to create them.
 
silently fails if $dll(1) contains a space:
 
<pre>//if ($dll(1)) dll -u $dll(1)</pre>
 
works whether or not $dll(1) contains a space:
 
<pre>//if ($dll(1)) dll -u $qt($dll(1))</pre>
 
 
if $dll(1) is $mircdir $+ subdir\foo.dll and $dll(2) is $mircdir $+ foo.dll
 
"/dll -u foo.dll" matches the 1st index matching $nopath(foo.dll), so it removes subdir\foo.dll unless that were loaded last. But "/dll -u $qt($dll(2))" removes the foo.dll not located in the subdir.
 
 
<pre>//dll foo.dll no_such_function | echo -a test</pre>
 
If foo.dll does not exist, the script halts with an error, and the echo does not display. If foo.dll does exist but the function does not exist, /dll displays an error to status window, but the script continues executing the echo. It also loads foo.dll even if the function doesn't exist, and remains loaded in memory if the .dll's initialization routine sets mKeep=$true. See the $dll article for keeping the .dll loaded after execution, and for keeping the .dll past 10 minutes of idle time.
 
 
While $dll(foo,function,) returns a 3rd parameter even if it's $null, "/dll foo.dll" does not require parm3.
 
 
Using
 
<pre>/dll file.dll function string</pre>
 
used for loading a dll is roughly equivalent to
 
<pre>noop $dll(file.dll,function,string)</pre>
 
  
 
== Compatibility ==
 
== Compatibility ==
Line 46: Line 26:
  
 
== See also ==
 
== See also ==
 +
* [[List of commands - mIRC|List of commands]]
 +
* [[List of identifiers - mIRC|List of identifiers]]
 
* {{mIRC|$dll}}
 
* {{mIRC|$dll}}
 
* {{mIRC|$dllcall}}
 
* {{mIRC|$dllcall}}
* {{mIRC|sendmessage}}
+
{{mIRC command list}}
 +
 
 +
[[Category:mIRC commands|dll command - mIRC]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)