What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Function dll C# in scripts ( Msg+ )

Function dll C# in scripts ( Msg+ )
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
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" :zippy:
03-02-2008 05:43 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Function dll C# in scripts ( Msg+ ) - by melliott on 03-02-2008 at 01:40 PM
RE: Function dll C# in scripts ( Msg+ ) - by Spunky on 03-02-2008 at 05:43 PM
RE: Function dll C# in scripts ( Msg+ ) - by ShawnZ on 03-02-2008 at 07:43 PM
RE: Function dll C# in scripts ( Msg+ ) - by roflmao456 on 03-02-2008 at 10:38 PM
RE: Function dll C# in scripts ( Msg+ ) - by deAd on 03-02-2008 at 10:48 PM
RE: Function dll C# in scripts ( Msg+ ) - by ShawnZ on 03-02-2008 at 10:53 PM
RE: Function dll C# in scripts ( Msg+ ) - by vikke on 03-02-2008 at 11:40 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On