Messanger API |
Author: |
Message: |
Plan-1130
Full Member
I keep askin' myself: why?
Posts: 142
73 / / –
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...
|
|
10-18-2006 01:17 PM |
|
|
Deco
Full Member
Posts: 188 Reputation: 4
42 / /
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 |
|
|
Shondoit
Full Member
Hmm, Just Me...
Posts: 227 Reputation: 15
36 / /
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.
|
|
10-18-2006 02:12 PM |
|
|
Plan-1130
Full Member
I keep askin' myself: why?
Posts: 142
73 / / –
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...
|
|
10-18-2006 02:15 PM |
|
|
Shondoit
Full Member
Hmm, Just Me...
Posts: 227 Reputation: 15
36 / /
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...
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.
|
|
10-18-2006 02:22 PM |
|
|
deAd
Scripting Contest Winner
Posts: 1060 Reputation: 28
– / /
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 |
|
|
Spunky
Former Super Mod
Posts: 3658 Reputation: 61
36 / /
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"
|
|
10-18-2006 09:46 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
Deco
Full Member
Posts: 188 Reputation: 4
42 / /
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|