DevMSN+

酷酷的MSN插件,随心所欲MSN

关于 MSN+
msn+ 主要介绍基于MsgPlusLive这个优秀的MSN插件的应用,包括个性的MSN皮肤,各种独特功能的MSN脚本。本网站跟Microsoft的MSN网站无任何关系。
什麼是 Messenger Plus! Live?
Messenger Plus! Live 是一个 Windows Live Messenger外挂程序,给MSN带来许多新的功能,让你的聊天过程更加有趣!
分类目录

下载MsgPlusLive 4.6
本地下载     迅雷下载     华军下载地址
Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

[Solved] Call a DLL with javascript without Interop.Call

Hi all !

I've programmed a little application in C# to use script like msg plus does.
I thank that was easy but there's a little problem. ^^

The application compil perfectly the JScript file, all work perfectly, I can call JS's function by the application, but I can't call application's function by the JS, i tried lot of thing as "Interop.Call" to send message with user32 but i understood after that's a msg plus function. (Smilie)

Does someone know how i can call user32 without Interop.Call from the javascript's file ?

Maybe with an ActiveX object... (Smilie)

I'm sure it's possible because Patchou did it.

Thanks ^^

This post was edited on 12-30-2006 at 03:32 AM by Huhu_Manix. 12-29-2006 08:05 PM Profile E-Mail PM Web Find Quote Report Bilbo
Senior Member
****

Avatar
B000ALFAZO

Posts: 360
Reputation: 13
13 / Male / Flag
Joined: Oct 2006
RE: Call a DLL with javascript without Interop.Call

found this little snippet:

http://www.adp-gmbh.ch/csharp/call_dll.html Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

RE: Call a DLL with javascript without Interop.Call

Thanks but i meaned call a DLL from the JavaScript. 12-29-2006 08:16 PM Profile E-Mail PM Web Find Quote Report Bilbo
Senior Member
****

Avatar
B000ALFAZO

Posts: 360
Reputation: 13
13 / Male / Flag
Joined: Oct 2006
RE: Call a DLL with javascript without Interop.Call

Oh, i belive this is not possible because all variables in JScript are variants and it would not work with the arguments being of different, however, you can get a dynamic wrapper (ActiveX) .dll which takes the variants and passes them onto the requested function in the correct type.

i will update this when i find it

dnwrap.dll + readme.txt

.zip File Attachment: dynawrapNt.zip (14.44 KB)
This file has been downloaded 93 time(s).

This post was edited on 12-29-2006 at 08:33 PM by Bilbo. Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

RE: Call a DLL with javascript without Interop.Call

Thanks, i don't try it yet but it should be perfect ! (Smilie) 12-30-2006 03:00 AM Profile E-Mail PM Web Find Quote Report CookieRevised
Elite Member
Beta Tester
Translator
*****

Avatar
mininana, badger, nanaphone creator

Posts: 12453
Reputation: 161
31 / Male / Flag
Joined: Jul 2003
Status: Away
RE: Call a DLL with javascript without Interop.Call

What Patchou did is adding his own methods, functions, interface, etc to the scripting engine. This should be well explained how in the MSDN library. Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

RE: Call a DLL with javascript without Interop.Call

Thanks but i tried what baggins gave me, it's exactly what i needed. 12-30-2006 03:31 AM Profile E-Mail PM Web Find Quote Report CookieRevised
Elite Member
Beta Tester
Translator
*****

Avatar
mininana, badger, nanaphone creator

Posts: 12453
Reputation: 161
31 / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Solved] Call a DLL with javascript without Interop.Call

quote:Originally posted by Huhu_Manix
Thanks but i tried what baggins gave me, it's exactly what i needed.it works, but it is not what you need.

If you already included the Windows scripting engine so your applications acts as the host* , it is only a few steps away (relativly spoken) to make your own function and methods. You don't need to depend on a dodgy ActiveX wrapper for that.

*(and I hope you did and you do not do some dodgy thing as in pushing a text file to the scripting runtime with a call like Shell or whatever. As that would also mean your application has no scripting capabilities at all and isn't a host at all, you just take some script file and run it outside your application)


quote:Originally posted by Baggins
Oh, i belive this is not possible because all variables in JScript are variants and it would not work with the arguments being of different, That isn't the reason. If it was, then it would also be impossible for Plus! to add this to the scripting engine... The reason is simply because such an instruction is not included nativly (unfortunatly, but understandable).

quote:Originally posted by Baggins
however, you can get a dynamic wrapper (ActiveX) .dll which takes the variants and passes them onto the requested function in the correct type.

i will update this when i find it

dnwrap.dll + readme.txtPlease, never attach files and other programs like that to posts. Always link to the original download pages for obvious reasons:
- updates
- important info
- untampered with packages
- original code
- etc...

The original Dynawrap.dll... is available from here:
http://cwashington.netreach.net/main/tools/default.asp?topic=a-m

This post was edited on 12-30-2006 at 09:35 AM by CookieRevised. Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

[Solved] Call a DLL with javascript without Interop.Call

Hi all !

I've programmed a little application in C# to use script like msg plus does.
I thank that was easy but there's a little problem. ^^

The application compil perfectly the JScript file, all work perfectly, I can call JS's function by the application, but I can't call application's function by the JS, i tried lot of thing as "Interop.Call" to send message with user32 but i understood after that's a msg plus function. (Smilie)

Does someone know how i can call user32 without Interop.Call from the javascript's file ?

Maybe with an ActiveX object... (Smilie)

I'm sure it's possible because Patchou did it.

Thanks ^^

This post was edited on 12-30-2006 at 03:32 AM by Huhu_Manix. 12-29-2006 08:05 PM Profile E-Mail PM Web Find Quote Report Bilbo
Senior Member
****

Avatar
B000ALFAZO

Posts: 360
Reputation: 13
13 / Male / Flag
Joined: Oct 2006
RE: Call a DLL with javascript without Interop.Call

found this little snippet:

http://www.adp-gmbh.ch/csharp/call_dll.html Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

RE: Call a DLL with javascript without Interop.Call

Thanks but i meaned call a DLL from the JavaScript. 12-29-2006 08:16 PM Profile E-Mail PM Web Find Quote Report Bilbo
Senior Member
****

Avatar
B000ALFAZO

Posts: 360
Reputation: 13
13 / Male / Flag
Joined: Oct 2006
RE: Call a DLL with javascript without Interop.Call

Oh, i belive this is not possible because all variables in JScript are variants and it would not work with the arguments being of different, however, you can get a dynamic wrapper (ActiveX) .dll which takes the variants and passes them onto the requested function in the correct type.

i will update this when i find it

dnwrap.dll + readme.txt

.zip File Attachment: dynawrapNt.zip (14.44 KB)
This file has been downloaded 93 time(s).

This post was edited on 12-29-2006 at 08:33 PM by Bilbo. Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

RE: Call a DLL with javascript without Interop.Call

Thanks, i don't try it yet but it should be perfect ! (Smilie) 12-30-2006 03:00 AM Profile E-Mail PM Web Find Quote Report CookieRevised
Elite Member
Beta Tester
Translator
*****

Avatar
mininana, badger, nanaphone creator

Posts: 12453
Reputation: 161
31 / Male / Flag
Joined: Jul 2003
Status: Away
RE: Call a DLL with javascript without Interop.Call

What Patchou did is adding his own methods, functions, interface, etc to the scripting engine. This should be well explained how in the MSDN library. Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

RE: Call a DLL with javascript without Interop.Call

Thanks but i tried what baggins gave me, it's exactly what i needed. 12-30-2006 03:31 AM Profile E-Mail PM Web Find Quote Report CookieRevised
Elite Member
Beta Tester
Translator
*****

Avatar
mininana, badger, nanaphone creator

Posts: 12453
Reputation: 161
31 / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Solved] Call a DLL with javascript without Interop.Call

quote:Originally posted by Huhu_Manix
Thanks but i tried what baggins gave me, it's exactly what i needed.it works, but it is not what you need.

If you already included the Windows scripting engine so your applications acts as the host* , it is only a few steps away (relativly spoken) to make your own function and methods. You don't need to depend on a dodgy ActiveX wrapper for that.

*(and I hope you did and you do not do some dodgy thing as in pushing a text file to the scripting runtime with a call like Shell or whatever. As that would also mean your application has no scripting capabilities at all and isn't a host at all, you just take some script file and run it outside your application)


quote:Originally posted by Baggins
Oh, i belive this is not possible because all variables in JScript are variants and it would not work with the arguments being of different, That isn't the reason. If it was, then it would also be impossible for Plus! to add this to the scripting engine... The reason is simply because such an instruction is not included nativly (unfortunatly, but understandable).

quote:Originally posted by Baggins
however, you can get a dynamic wrapper (ActiveX) .dll which takes the variants and passes them onto the requested function in the correct type.

i will update this when i find it

dnwrap.dll + readme.txtPlease, never attach files and other programs like that to posts. Always link to the original download pages for obvious reasons:
- updates
- important info
- untampered with packages
- original code
- etc...

The original Dynawrap.dll... is available from here:
http://cwashington.netreach.net/main/tools/default.asp?topic=a-m

This post was edited on 12-30-2006 at 09:35 AM by CookieRevised. Huhu_Manix Full Member Upload me again... *salivate* Posts: 130 – / / – Joined: Jul 2006

[Solved] Call a DLL with javascript without Interop.Call

Hi all !

I've programmed a little application in C# to use script like msg plus does.
I thank that was easy but there's a little problem. ^^

The application compil perfectly the JScript file, all work perfectly, I can call JS's function by the application, but I can't call application's function by the JS, i tried lot of thing as "Interop.Call" to send message with user32 but i understood after that's a msg plus function. (Smilie)

Does someone know how i can call user32 without Interop.Call from the javascript's file ?

Maybe with an ActiveX object... (Smilie)

I'm sure it's possible because Patchou did it.

Thanks ^^

This post was edited on 12-30-2006 at 03:32 AM by Huhu_Manix. 12-29-2006 08:05 PM Profile E-Mail PM Web Find Quote Report Bilbo
Senior Member
****

Avatar
B000ALFAZO

Posts: 360
Reputation: 13
13 / Male / Flag
Joined: Oct 2006
RE: Call a DLL with javascript without Interop.Call

found this little snippet:

http://www.adp-gmbh.ch/csharp/call_dll.html
相关链接
下载MsgPlusLive 4.6
本地下载     迅雷下载     华军下载地址
copyright devmsn.com