Shoutbox

Help, I am doing a Plugin - 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)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Help, I am doing a Plugin (/showthread.php?tid=50660)

Help, I am doing a Plugin by christianh on 09-18-2005 at 11:21 PM

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!!
RE: Help, I am doing a Plugin by Plik on 09-18-2005 at 11:42 PM

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.
RE: Help, I am doing a Plugin by christianh on 09-18-2005 at 11:57 PM

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!
RE: Help, I am doing a Plugin by matty on 09-19-2005 at 12:38 AM

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>


RE: Help, I am doing a Plugin by christianh on 09-19-2005 at 03:19 PM

Windows API? :|

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


RE: Help, I am doing a Plugin by RaceProUK on 09-20-2005 at 11:07 AM

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.


RE: Help, I am doing a Plugin by christianh on 09-20-2005 at 03:04 PM

How can I change the FriendlyName by my plugin, aways an error apper "read only" :(


RE: Help, I am doing a Plugin by matty on 09-20-2005 at 03:19 PM

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)

RE: RE: Help, I am doing a Plugin by christianh on 09-20-2005 at 03:38 PM

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!
RE: Help, I am doing a Plugin by matty on 09-20-2005 at 04:59 PM

Matty's reply to Active Accessibility for incoming messages