What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Help, I am doing a Plugin

Help, I am doing a Plugin
Author: Message:
christianh
New Member
*


Posts: 6
Joined: Sep 2005
O.P. Help, I am doing a Plugin
I am using Msg Plus API, then I test the code:

code:
Public WithEvents MsgrUIA As MessengerAPI.Messenger
Public mWindow As MessengerAPI.IMessengerWindow
Public MsgrContact As MessengerAPI.IMessengerContact

Private Sub Command1_Click()
MsgBox ("My SigninName = " & CStr(MsgrUIA.MySigninName))
End Sub



But it returns the same Error :

Object Variable or With Block variable not set

What is wrong? Thanks!!

This post was edited on 09-18-2005 at 11:25 PM by christianh.
09-18-2005 11:21 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
35 / Male / –
Joined: Jun 2004
RE: Help, I am doing a Plugin
is that all your code or is there more?

you need to make sure you set MsgrUIA to a value, this can be done in a plugin by setting the object that is passed in the initialise function.
otherwise you need a line that goes something like
code:
set MsgrUIA = New messengerapi.Messenger
although that might not exactly be it as i dont have any vb source on the computer im at right now.
09-18-2005 11:42 PM
Profile PM Find Quote Report
christianh
New Member
*


Posts: 6
Joined: Sep 2005
O.P. RE: Help, I am doing a Plugin
Thanks man, it works! a big kiss LOL!!!
code:
MsgrUIA.MyFriendlyName

this is to get the Name, but, how to get the Personal Message?
thnks!
09-18-2005 11:57 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help, I am doing a Plugin
In the MessengerAPI you don't have access to the Personal Message. It all has to be done using the Windows API (not sure myself how to get or set it.)

<offtopic>3000 posts, w00t!</offtopic>

This post was edited on 09-19-2005 at 12:39 AM by matty.
09-19-2005 12:38 AM
Profile E-Mail PM Find Quote Report
christianh
New Member
*


Posts: 6
Joined: Sep 2005
O.P. RE: Help, I am doing a Plugin
Windows API? :|

How can I do that? Somebody here knows? How to change the Personal Messagem with the API!

This post was edited on 09-19-2005 at 03:22 PM by christianh.
09-19-2005 03:19 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Help, I am doing a Plugin
The part of the Windows API you'll need to look at is the Active Accessibility API. It being a COM-based API, it should be easy to use in VB.
MSDN has full info on AA, just search for 'AccessibleObjectFromEvent' and you'll get to the right section.
[Image: spartaafk.png]
09-20-2005 11:07 AM
Profile PM Web Find Quote Report
christianh
New Member
*


Posts: 6
Joined: Sep 2005
O.P. RE: Help, I am doing a Plugin
How can I change the FriendlyName by my plugin, aways an error apper "read only" :(
09-20-2005 03:04 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help, I am doing a Plugin
Change the friendly name using the Messenger Plus! API.

code:
Dim retVal As Long
retVal = SetNewName("This would be the new name")
Debug.Print CBool(retVal)
09-20-2005 03:19 PM
Profile E-Mail PM Find Quote Report
christianh
New Member
*


Posts: 6
Joined: Sep 2005
O.P. RE: RE: Help, I am doing a Plugin
quote:
Originally posted by raceprouk
The part of the Windows API you'll need to look at is the Active Accessibility API. It being a COM-based API, it should be easy to use in VB.
MSDN has full info on AA, just search for 'AccessibleObjectFromEvent' and you'll get to the right section.



I did not find that Active Accessibility API. Where to download it or where it is localized?
I found a oleacc.dll but I dont know how to use it, help? plz?
thanks!

This post was edited on 09-20-2005 at 03:54 PM by christianh.
09-20-2005 03:38 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help, I am doing a Plugin
Matty's reply to Active Accessibility for incoming messages
09-20-2005 04:59 PM
Profile E-Mail PM 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