Messanger API - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Messanger API (/showthread.php?tid=67443) Messanger API by Plan-1130 on 10-18-2006 at 01:17 PM
Does anyone know how to call the Messenger API from within a script, i can work out how to call it from a dll file, but is there any way to call it from within a script without the use of a dll file? RE: Messanger API by Deco on 10-18-2006 at 01:37 PM
Hi RE: Messanger API by Shondoit on 10-18-2006 at 02:12 PM
Why would you want to use the messenger API? RE: Messanger API by Plan-1130 on 10-18-2006 at 02:15 PM certain things can only be done with the messenger API, like adding and deleting contacts, and writing a dll or activex it exactly what i try not to... RE: Messanger API by Shondoit on 10-18-2006 at 02:22 PM
I don't know any way how to use the API without putting it in a dll or ActiveX... RE: Messanger API by deAd on 10-18-2006 at 09:39 PM
The API can be used with the ActiveXControl object. code: This might not work on all machines, and some features (like groups) will not be accessible/may crash wlm. This will also cause Windows Messenger to run in the background. RE: Messanger API by Spunky on 10-18-2006 at 09:46 PM
quote: I've been working in VB6 all night figuring out the API commands so I could write a DLL to use or something. That seems likes a good solution that you posted, but why does it make Messenger run in the background? RE: Messanger API by matty on 10-18-2006 at 09:56 PM
quote:It is a bug in Windows XP where the API, if Windows Messenger is installed, is run because natively Windows XP uses the API for certain features like Remote Assistance. RE: Messanger API by Deco on 10-18-2006 at 10:52 PM
Matty, RE: Messanger API by matty on 10-18-2006 at 11:00 PM
quote:Normally calling the functions like you would in Visual Basic. So the Variable declared there is MessengerAPI, so to open a conversation window you do code: RE: RE: Messanger API by CookieRevised on 10-18-2006 at 11:06 PM
quote:Never use the ".1", ".2" or whatever as a reference. This is part of the reason why it doesn't work on some machines. Those identify the versions so to speak, of the activex objects. Specifiying them will cause Windows quite often to not find the proper 'versions'. see CookieRevised's reply to [Question] Any way I can get a Winsock ActiveXObject working ? Also note that each time you use 'ActiveXObject("Messenger.UIAutomation")' a new object is created which will lead to out of memory problems, and maybe even crashes, etc very rapidly. Hence, I suggest to not use this in scripts... related: http://forum.mess.be/index.php?s=73b0a25dcb617f93...5b&showtopic=19108 http://forum.mess.be/index.php?showtopic=55 (<= SpunkyLoveMuff, read this also) http://forums.fanatic.net.nz/index.php?showtopic=5799 http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=478 quote:If you want to use a DLL, you don't need what has been posted before. See forums like MSNFanatic for more info on how to create a DLL which references the Messenger API. Or you can also find a lot of examples in the plugins section on this forums. Also, in VB6, you can use the object browser to get all the available objects, properties, functions, etc at your disposal (after you have created a reference to the Messenger API). RE: RE: RE: Messanger API by deAd on 10-18-2006 at 11:16 PM
quote:I am aware of that, but I do not know of another working ID...so I posted that and a warning ... RE: RE: RE: RE: Messanger API by CookieRevised on 10-18-2006 at 11:21 PM
quote:The working* id is without the ".1". See link** in previous post why * though I wouldn't call it 'working'. See also previous post ** CookieRevised's reply to [Question] Any way I can get a Winsock ActiveXObject working ? RE: Messanger API by Deco on 10-18-2006 at 11:26 PM
Just one more silly question I promise RE: Messanger API by CookieRevised on 10-18-2006 at 11:39 PM
quote:Its not really a bug though, its more how it is designed... For a very detailed explanation, see: http://www.fanatic.net.nz/2006/03/22/msn-messenge...api-confusion.html quote:Not a silly question though... The link you provided is a part of the documentation, the main link is this one. Go to there you'll also see that this documentation is very old and actually meant for Windows Messenger, not MSN Messenger, let alone for Windows Live Messenger. That same documentation is also available as a chm file though (somewhere, don't have the link at hand). But many things stated there still apply or can be taken as basis. More details and practical examples can be found on various forums (msnfanatic, mess.be, this one, etc). * for SpunkyLoveMuff and others who want to make a DLL which references the Messenger API, see sites as MSNFanatic, mess.be, etc. eg: More (unofficial) info and examples on the Messenger API: http://www.fanatic.net.nz/2003/05/31/introduction...-type-library.html http://www.fanatic.net.nz/2004/08/02/display-picture-api.html http://www.fanatic.net.nz/2005/10/10/accessing-an...-contact-list.html * Related API docs (official): Windows Live Messenger development Messenger Activity Add-In API documentation 1 Messenger Activity Add-In API documentation 2 Yahoo Messenger API documentation RE: Messanger API by Deco on 10-18-2006 at 11:45 PM
You're my hero Cookie. RE: Messanger API by Plan-1130 on 10-19-2006 at 02:32 PM
quote:but what if a function returns an object? in vb this would be code: RE: Messanger API by Shondoit on 10-19-2006 at 02:59 PM Just the same, only it's code: |