Spunky
Former Super Mod
Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
|
RE: Function dll C# in scripts ( Msg+ )
You want to take a look at Interop.Call:
quote: The Interop::Call function allows scripts to call functions located in external libraries. For example, it can be used to call functions from the Windows API.
code: [number] Interop.Call(
[string] DllName,
[string] FunctionName,
[var, optional] Param1,
[var, optional] Param2,
[var, optional] Param3,
[var, optional] Param4,
[var, optional] Param5,
[var, optional] Param6,
[var, optional] Param7,
[var, optional] Param8,
[var, optional] Param9,
[var, optional] Param10,
[var, optional] Param11,
[var, optional] Param12
);
The return value is whatever the function returns. Example:
code: var value = Interop.Call("User32","EnableWindow", hWnd, false);
<Eljay> "Problems encountered: shit blew up"
|
|