IPB

Welcome Guest ( Log In | Register )

2 Pages V  < 1 2  
Reply to this topicStart new topic
> MessengerAPI without Windows Messenger
Ricky@Sydney
post Sep 7 2008, 12:50 AM
Post #21


Mess.bean
*

Group: Members
Posts: 5
Joined: 7-September 08
Member No.: 37,303



QUOTE(TheSteve @ Aug 2 2008, 10:49 AM) [snapback]175034[/snapback]
You can create a Windows Live Agent
Or you can use Microsoft Active Accessibility to receive events on when the history box of the change window has changed.

Hi Steve,

Thanks for the input. I am not writing a chat bot but rather a secured encrypted conversation between two business associates. Which interface would be my best bet? At this point, I have a stop gap solution using the crude SendKeys and windows enumeration. Is there a better interface available? I am trying to avoid using MessengerClient because I do not want anyone to touch the registry keys and do any setups.

Any help or pointers would be most appreciated.

Thanks in advance.
Cheers
Ricky

P/S My progam is C# based.
Go to the top of the page
 
+Quote Post
TheSteve
post Sep 8 2008, 02:33 AM
Post #22


The Man from Japan
******

Group: Members
Posts: 693
Joined: 9-June 05
From: Fukuoka Japan
Member No.: 9,636



QUOTE(Ricky@Sydney @ Sep 7 2008, 09:50 AM) [snapback]175366[/snapback]
I am not writing a chat bot but rather a secured encrypted conversation between two business associates.

Attempting to encrypt your messages would require that you have access to incoming data as well as outgoing data. This is not a simple task.
Would it be possible to use a program such as SimpLite?
Go to the top of the page
 
+Quote Post
Ricky@Sydney
post Sep 8 2008, 10:28 AM
Post #23


Mess.bean
*

Group: Members
Posts: 5
Joined: 7-September 08
Member No.: 37,303



QUOTE(TheSteve @ Sep 8 2008, 12:33 PM) [snapback]175379[/snapback]
Attempting to encrypt your messages would require that you have access to incoming data as well as outgoing data. This is not a simple task.
Would it be possible to use a program such as SimpLite?

I saw SimpLite but I am doing it more than that. I wanted to do a total solution (MSN messenger, hotmail, yahoo, facebook, gmail, gmail chat, and Outlook). I have done on hotmail and facebook. Gmail is harder but still doable. Having said that, Gmail chat is giving me some challenges to consider when I discovered that it has two modes of frames.

Back on MSN messenger, on the incoming data, I have found two ways of doing it. 1) Monitor using raw sockets; which I have done before using a C++ solution on another project. The second way, is to use the history member of the conversation object. I have completed a very successful experiment with the conversation object yesterday and therefore I believe I can write a solution based on the history. On the outgoing data however, I have only one solution currently; i.e. to use SendKeys, which I believe is very crude and buggy. I wanted to have a better solution and MessengerClient is one of my consideration but as said, I want a simple solution; a solution without any setup.

With that in mind, I hope you can shed some more light to me in regards to the options on MSN Messenger.

Many thanks in advance.
Cheers
Ricky
Go to the top of the page
 
+Quote Post
TheSteve
post Sep 9 2008, 12:31 AM
Post #24


The Man from Japan
******

Group: Members
Posts: 693
Joined: 9-June 05
From: Fukuoka Japan
Member No.: 9,636



Take a look at my reply, here.

If you have further questions, I recommend that you start a new thread as this has nothing to do with the MessengerAPI library.
Go to the top of the page
 
+Quote Post
Ricky@Sydney
post Sep 9 2008, 11:10 AM
Post #25


Mess.bean
*

Group: Members
Posts: 5
Joined: 7-September 08
Member No.: 37,303



QUOTE(TheSteve @ Sep 9 2008, 10:31 AM) [snapback]175391[/snapback]
Take a look at my reply, here.

Hi Steve,

Kumasta or Ogenki.
Thank you so much. I have managed to get and set the "Input" text . You have been an excellent help.

Cheers
Ricky

Go to the top of the page
 
+Quote Post
TheSteve
post Sep 10 2008, 12:37 AM
Post #26


The Man from Japan
******

Group: Members
Posts: 693
Joined: 9-June 05
From: Fukuoka Japan
Member No.: 9,636



QUOTE(Ricky@Sydney @ Sep 9 2008, 08:10 PM) [snapback]175393[/snapback]
Kumasta or Ogenki.

Kumasta is Tagalog (language of the Philippines) (Only know that because my step-mother-in-law is from the Philippines)
Genki is Japanese. It literally means health or healthy.

Glad to hear you got it working msn_happy.gif
Go to the top of the page
 
+Quote Post
johncaccone
post Oct 31 2008, 09:08 AM
Post #27


Mess.bean
*

Group: Members
Posts: 3
Joined: 30-October 08
From: Switzerland
Member No.: 38,584



Excellent work msn_wink.gif

How can I block contacts with your Library using VB6? With the old api I used "msn.GetContact("x[at]hotmail[dot]com", msn.MyServiceId).Blocked = True" but it doesn't work msn_sad.gif

Thanks
Go to the top of the page
 
+Quote Post
TheSteve
post Nov 1 2008, 02:10 AM
Post #28


The Man from Japan
******

Group: Members
Posts: 693
Joined: 9-June 05
From: Fukuoka Japan
Member No.: 9,636



QUOTE (johncaccone @ Oct 31 2008, 06:08 PM) *
With the old api I used "msn.GetContact("x[at]hotmail[dot]com", msn.MyServiceId).Blocked = True" but it doesn't work msn_sad.gif

The GetContact function returns an "object" typed variable, however the new API is not designed with Automation in mind and because of this, attempting to use properties or functions on a "object"(IDipatch) object doesn't work. To work around this you must cast the object to its proper type. For example:
CODE
Dim contact as IMSNMessengerContact
Set contact = msn.GetContact("email address",msn.MyServiceID)
contact.Blocked="True"

Go to the top of the page
 
+Quote Post
johncaccone
post Nov 1 2008, 08:57 AM
Post #29


Mess.bean
*

Group: Members
Posts: 3
Joined: 30-October 08
From: Switzerland
Member No.: 38,584



QUOTE (TheSteve @ Nov 1 2008, 03:10 AM) *
The GetContact function returns an "object" typed variable, however the new API is not designed with Automation in mind and because of this, attempting to use properties or functions on a "object"(IDipatch) object doesn't work. To work around this you must cast the object to its proper type. For example:
CODE
Dim contact as IMSNMessengerContact
Set contact = msn.GetContact("email address",msn.MyServiceID)
contact.Blocked="True"

Thank you msn_wink.gif!!!!! It Works well
Go to the top of the page
 
+Quote Post
SampleDude
post Sep 30 2009, 03:03 PM
Post #30


Mess.bean
*

Group: Members
Posts: 5
Joined: 29-November 08
Member No.: 39,093



how can I add it to Visual Basic 2008?
I mean I tried it as usual and when I double clicked it in the browse tab it gave me a MessageBox with an error: You couldn't add a Reference on Path (where I have it saved) be sure that you are able to access the file or that it is a valid Assembly or COM Component
(I translated that to english so it might not be 100% accurate but I'm sure you get what I mean)
how can I fix this?

This post has been edited by SampleDude: Sep 30 2009, 03:07 PM
Go to the top of the page
 
+Quote Post
TheSteve
post Oct 6 2009, 02:44 AM
Post #31


The Man from Japan
******

Group: Members
Posts: 693
Joined: 9-June 05
From: Fukuoka Japan
Member No.: 9,636



For some versions of Visual Studio, you need to create a DLL from the type library. Instructions are as follows:
QUOTE
use this command to generate dll

tlbimp MSNMessengerAPI.tlb /out:MSNMessengerAPI.dll

tlbimp located in

F:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin

next add the reference with the new dll


The location on your machine may be different as this was written for Visual Studio 2005 (MSVS8).

This post has been edited by TheSteve: Oct 6 2009, 02:45 AM
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 21st March 2019 - 02:37 AM
2004-2008 Seb Skuse, mess.be.
MessForum v6.1.4 - created for, and for use only by mess.be.