What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Messanger API

Pages: (2): « First [ 1 ] 2 » Last »
1 votes - 3 average   Messanger API
Author: Message:
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
O.P. Messanger API
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?

I mean in Visual Basic you can call Messenger API Type Library, but I'm not a real expert with JScript...
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
10-18-2006 01:17 PM
Profile E-Mail PM Find Quote Report
Deco
Full Member
***


Posts: 188
Reputation: 4
41 / Male / Flag
Joined: Aug 2006
RE: Messanger API
Hi

I think it would be easier to make a dll in VB that used the api and then call your own dll in jscript.

But I'd wait for Cookie or Shondoit or CLoudy to reply because they rock and I'm just another Noob :)

I'm trying the same stuff in case you want to share info I'm messing with the messenger api in vb.

PM me your MSN If you want.

Have fun
10-18-2006 01:37 PM
Profile E-Mail PM Web Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
35 / Male / Flag
Joined: Jul 2006
RE: Messanger API
Why would you want to use the messenger API?

You can change virtually everything from inside the script...
Like Messenger.MyName changes your nickname, etc
(You can find all information in the Scripting documentation)

If you really need to use the API, you can indeed make a dll in VB or an ActiveX and call it from the script

Edit: added link to scripting doc

This post was edited on 10-18-2006 at 02:14 PM by Shondoit.
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
10-18-2006 02:12 PM
Profile PM Find Quote Report
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
O.P. RE: Messanger API
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...
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
10-18-2006 02:15 PM
Profile E-Mail PM Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
35 / Male / Flag
Joined: Jul 2006
RE: Messanger API
I don't know any way how to use the API without putting it in a dll or ActiveX... :S

I don't think there is a way to do that... but perhaps someone else knows...

Edit: @Deco, if you have a different question than the one the topicstarter has, please open another thread, and since it's a question about the API you should post it in the plug-in forum...
And you can do this very easy with a script....

This post was edited on 10-18-2006 at 02:24 PM by Shondoit.
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
10-18-2006 02:22 PM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Messanger API
The API can be used with the ActiveXControl object.

code:
var MessengerAPI = new ActiveXObject("Messenger.UIAutomation.1");

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.
10-18-2006 09:39 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Messanger API
quote:
Originally posted by deAd
The API can be used with the ActiveXControl object.

code:
var MessengerAPI = new ActiveXObject("Messenger.UIAutomation.1");

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.

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?
<Eljay> "Problems encountered: shit blew up" :zippy:
10-18-2006 09:46 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Messanger API
quote:
Originally posted by SpunkyLoveMuff
quote:
Originally posted by deAd
The API can be used with the ActiveXControl object.

code:
var MessengerAPI = new ActiveXObject("Messenger.UIAutomation.1");

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.

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?
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.
10-18-2006 09:56 PM
Profile E-Mail PM Find Quote Report
Deco
Full Member
***


Posts: 188
Reputation: 4
41 / Male / Flag
Joined: Aug 2006
RE: Messanger API
Matty,

How would I use th API after that? Just call it's functions or do I need to declare stuff ..?

Thanks
10-18-2006 10:52 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Messanger API
quote:
Originally posted by Deco
Matty,

How would I use th API after that? Just call it's functions or do I need to declare stuff ..?

Thanks
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:
MessengerAPI.InstantMessage('johndoe@hotmail.com');
10-18-2006 11:00 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


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