What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Variablising the oMessenger Object passed to Initialize

Variablising the oMessenger Object passed to Initialize
Author: Message:
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
O.P. Variablising the oMessenger Object passed to Initialize
ok i need to set the object of a variable to the oMessenger object passed to Initialize

here is what im using
code:
in a module
Option Explicit
Global MSN As Object
___________________

in the class module
Public Function Initialize(ByVal nVersion As Long, ByVal sUserEmail As String, ByVal oMessenger As Object) As Boolean
Set MSN = Nothing
Set MSN = oMessenger
Initialize = True

End Function

its in vb :P
ive also tried
code:
Set MSN = New oMessenger

thanks for any help in advance


edit: Dempsey suggested i add the Windows Messenger API, but in the last version of my proggie i didnt need to.

This post was edited on 12-21-2004 at 04:15 PM by Ash_.
[Image: jeansiger5.jpg]
12-21-2004 04:11 PM
Profile PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
RE: Variablising the oMessenger Object passed to Initialize
Actually, the last time I used the messenger object that MsgPlus! gives me, I noticed that it passes thing like "hWnd", "Top", "Left" etc.
But I'm not sure... :S
YouTube closed-captions ripper (also allows you to download videos!)
12-21-2004 08:40 PM
Profile E-Mail PM Web Find Quote Report
Millenium_edition
Veteran Member
*****

Avatar

Posts: 1787
Reputation: 57
Joined: Apr 2003
RE: Variablising the oMessenger Object passed to Initialize
quote:
Originally posted by Mike2
Actually, the last time I used the messenger object that MsgPlus! gives me, I noticed that it passes thing like "hWnd", "Top", "Left" etc.
But I'm not sure... :S
you're right: you're not sure. because what you're talking about is the IMessengerWindow interface.
12-21-2004 08:56 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Variablising the oMessenger Object passed to Initialize
quote:
Originally posted by Ash_
code:
Global MSN As Object

Don't you mean new MessenserAPI.IMessenger3?

This post was edited on 12-21-2004 at 10:20 PM by RaceProUK.
[Image: spartaafk.png]
12-21-2004 10:18 PM
Profile PM Web Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
O.P. RE: RE: Variablising the oMessenger Object passed to Initialize
quote:
Originally posted by raceprouk
quote:
Originally posted by Ash_
code:
Global MSN As Object

Don't you mean new MessenserAPI.IMessenger3?


if i do it that way dont i have the have a reference to the messenger API. which means Windows Messenger needs to be upadated and not fscked up?
[Image: jeansiger5.jpg]
12-22-2004 11:11 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Variablising the oMessenger Object passed to Initialize
Kinda, yeah.
[Image: spartaafk.png]
12-22-2004 10:01 PM
Profile PM Web Find Quote Report
« 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