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.