What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How can I call a function of my script via a VB ActiveX DLL?

How can I call a function of my script via a VB ActiveX DLL?
Author: Message:
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
O.P. RE: How can I call a function of my script via a VB ActiveX DLL?
quote:
Originally posted by CookieRevised
Both ways of method 1 can be done with anything which supports Windows APIs. Your thing doesn't need to be an ActiveX DLL, or even not be a DLL at all. It can be an exe (eg: like with SendTo), or whatever you make it in (eg: if a DOS batch file would support Windows APIs it could be that too). There is no real bound between your thing and the Plus! script.

Oh, yes, I understood that :)


quote:
Originally posted by CookieRevised
For the second method your thing _must_ be an ActiveX DLL as it is the ActiveX object which will be linked to the script. There is a bound between your thing and the Plus! script.
Since I think that I will use an ActiveX dll to do that (just because I don't think I have a reason to use an exe), can you please explain that method? :)
quote:
Originally posted by CookieRevised
For whatever way you choose (but certainly with method 1), you must _always_ take into consideration that multiple Plus! windows can exist (eg: when the user uses polygamy) and that the Plus! windows don't always exist and/or the script isn't running. Also take into consideration that the user can be switched in Messenger. You do not want to send stuff from your thing to the Plus! script of another user who just logged in instead of the previous one.
Right, I forgot about that.
Well, I guess that I can solve this problem quite simply by setting the hidden window's title to the user's email (or a random string?) and then send that string to my DLL. My dll then, would use FindWindow and pass the string the script sent to the dll as the window's title to find the handle of the hidden window.
Or maybe, I could just send the hWnd of the hidden window to my DLL, since MsgPlus has a function of getting the hWnd of a script created window.
YouTube closed-captions ripper (also allows you to download videos!)
05-05-2007 10:37 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How can I call a function of my script via a VB ActiveX DLL? - by Mike on 05-05-2007 at 09:28 AM
RE: How can I call a function of my script via a VB ActiveX DLL? - by CookieRevised on 05-05-2007 at 10:00 AM
RE: How can I call a function of my script via a VB ActiveX DLL? - by Mike on 05-05-2007 at 10:04 AM
RE: How can I call a function of my script via a VB ActiveX DLL? - by CookieRevised on 05-05-2007 at 10:19 AM
RE: How can I call a function of my script via a VB ActiveX DLL? - by Mike on 05-05-2007 at 10:37 AM
RE: RE: How can I call a function of my script via a VB ActiveX DLL? - by CookieRevised on 05-05-2007 at 11:15 AM


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