|  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 | 
 | 
  | 
Plik 
Veteran Member 
     
  
  
 
Posts: 1487 Reputation: 46 
36 /   / – 
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 | 
 | 
  | 
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 | 
 | 
  | 
matty 
Scripting Guru 
     
  
 
Posts: 8327 Reputation: 109 
40 /   /   
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 | 
 | 
  | 
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 | 
 | 
  | 
RaceProUK 
Elite Member 
     
  
  
 
Posts: 6070 Reputation: 57 
40 /   /   
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. 
 |   
 | 
| 09-20-2005 11:07 AM | 
 | 
  | 
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 | 
 | 
  | 
matty 
Scripting Guru 
     
  
 
Posts: 8327 Reputation: 109 
40 /   /   
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 | 
 | 
  | 
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 | 
 | 
  | 
matty 
Scripting Guru 
     
  
 
Posts: 8327 Reputation: 109 
40 /   /   
Joined: Dec 2002
 
Status: Away
 
 | 
| 
 RE: Help, I am doing a Plugin
 |   
 | 
| 09-20-2005 04:59 PM | 
 | 
  | 
| 
 |