Valhalla Legends Forums Archive | Visual Basic Programming | Bit of help please

AuthorMessageTime
QwertyMonster
I haven't actually started this, just thought about it. I would like to make it though.

I want to build a program so that if my status on MSN Messenger is "Away" for instance, and somebody talks to me.. i want it to send a messge saying "Blah msg here to be sent". How would i do this?

Thanks in Advance
December 31, 2005, 11:12 PM
JoeTheOdd
I don't know if MSN Messenger allows plugins, but if you want to switch to Gaim, I know it does. If MSN supports plugins, it would need to be in C/C++, as do Gaim's (C, I think.)

Besides that, your only option is to use a Packet Capture Library, such as WinPcap, to find when people send you messages, ReadProcessMemory to see if you're currently away, and then Adron's hooksocket to send the response message to them.
January 1, 2006, 9:45 AM
rabbit
Gaim uses Perl for its plugins.
January 1, 2006, 1:31 PM
Mangix
[quote author=Joe link=topic=13719.msg139994#msg139994 date=1136108711]
I don't know if MSN Messenger allows plugins
[/quote]It does with a program called MsgPlus but i dont have any info on making em :/
January 1, 2006, 3:13 PM
QwertyMonster
[quote author=FatBastard link=topic=13719.msg140013#msg140013 date=1136128394]
[quote author=Joe link=topic=13719.msg139994#msg139994 date=1136108711]
I don't know if MSN Messenger allows plugins
[/quote]It does with a program called MsgPlus but i dont have any info on making em :/
[/quote]

MessengerPlus has the feature i am trying to make. But messengerplus is spyware.
January 1, 2006, 8:02 PM
JoeTheOdd
hm
January 2, 2006, 4:31 PM
Mangix
[quote author=Saphire link=topic=13719.msg140031#msg140031 date=1136145723]
[quote author=FatBastard link=topic=13719.msg140013#msg140013 date=1136128394]
[quote author=Joe link=topic=13719.msg139994#msg139994 date=1136108711]
I don't know if MSN Messenger allows plugins
[/quote]It does with a program called MsgPlus but i dont have any info on making em :/
[/quote]

MessengerPlus has the feature i am trying to make. But messengerplus is spyware.
[/quote] you do realize that there is an option to install it without the spyware right? you lose no functionallity which is quite nice. only bad part about it is that Microsoft AntiSpyware complains even if you chose not to install the spyware.
January 3, 2006, 3:19 AM
TehUser
Of course, there are easier ways like writing a proxy or using the API related to windows.  There's even injecting a DLL, but that's probably more work.
January 3, 2006, 5:21 PM
QwertyMonster
[quote author=FatBastard link=topic=13719.msg140186#msg140186 date=1136258382]
[quote author=Saphire link=topic=13719.msg140031#msg140031 date=1136145723]
[quote author=FatBastard link=topic=13719.msg140013#msg140013 date=1136128394]
[quote author=Joe link=topic=13719.msg139994#msg139994 date=1136108711]
I don't know if MSN Messenger allows plugins
[/quote]It does with a program called MsgPlus but i dont have any info on making em :/
[/quote]



MessengerPlus has the feature i am trying to make. But messengerplus is spyware.
[/quote] you do realize that there is an option to install it without the spyware right? you lose no functionallity which is quite nice. only bad part about it is that Microsoft AntiSpyware complains even if you chose not to install the spyware.
[/quote]


It still installs spyware... doesn't it? Atleast i think it does.

@Joe: Thanks. :P

@TehUser: Hmm.. lol
January 3, 2006, 7:35 PM
JoeTheOdd
TehUser, a proxy would require intense research of the MSN protocol, which IIRC hasn't been released publicly since it was first drafted. Of course, if he knew C, he could read Gaim, but I don't think he does, so eh.

Elaborate on that API idea, if you will. I'm not quite sure what you mean by it.

Also, for injecting a DLL, that'd have to be done in C or C++ (without major modifications to the way VB builds files, which I failed at doing myself).
January 4, 2006, 12:08 AM
Myndfyr
[quote author=Joe link=topic=13719.msg140316#msg140316 date=1136333315]
TehUser, a proxy would require intense research of the MSN protocol, which IIRC hasn't been released publicly since it was first drafted. Of course, if he knew C, he could read Gaim, but I don't think he does, so eh.
[/quote]
Why would it require protocol research?  A proxy is simply middleware; you connect to the proxy and the proxy connects to the server.  All it does is relay messages.  No protocol knowledge required.
January 4, 2006, 12:20 AM
kamakazie
[quote author=MyndFyre link=topic=13719.msg140325#msg140325 date=1136334041]
[quote author=Joe link=topic=13719.msg140316#msg140316 date=1136333315]
TehUser, a proxy would require intense research of the MSN protocol, which IIRC hasn't been released publicly since it was first drafted. Of course, if he knew C, he could read Gaim, but I don't think he does, so eh.
[/quote]
Why would it require protocol research?  A proxy is simply middleware; you connect to the proxy and the proxy connects to the server.  All it does is relay messages.  No protocol knowledge required.
[/quote]

There might be some NATing involved, so parsing the protocol might be necessary. This all depends on the protocol however.
January 4, 2006, 12:58 AM
TehUser
[quote author=Joe link=topic=13719.msg140316#msg140316 date=1136333315]
TehUser, a proxy would require intense research of the MSN protocol, which IIRC hasn't been released publicly since it was first drafted. Of course, if he knew C, he could read Gaim, but I don't think he does, so eh.[/quote]As pretty much everyone has said, there's no protocol knowledge required.  However, the protocol is documented and this would probably be the easiest way to create something along the lines of what he's looking for.
[quote author=Joe link=topic=13719.msg140316#msg140316 date=1136333315]
Elaborate on that API idea, if you will. I'm not quite sure what you mean by it.[/quote]Running a timer to FindWindow any new messages that have arrived and then using the API to set the text of the message box and then click the send button would be another way to do this.

[quote author=Joe link=topic=13719.msg140316#msg140316 date=1136333315]
Also, for injecting a DLL, that'd have to be done in C or C++ (without major modifications to the way VB builds files, which I failed at doing myself).
[/quote]Wrong.  Just because you've failed doesn't mean that more competent programmers haven't accomplished this already.
January 4, 2006, 1:26 AM
JoeTheOdd
No offence to Qwerty, but he isn't a more competent programmer than I am. =/.
January 4, 2006, 1:31 AM
QwertyMonster
I know i'm not. I think i'll just use MSG Plus and hope it doesn't give me spyware again and muck my computer up. (Like it did last time! :(). Thanks for all the helps guys. I'll leave the topic open though for some of you to carry on your discussion.
January 4, 2006, 1:30 PM
JoeTheOdd
Now that TehUser has elaborated on the use of API calls, I think that would be the best way to go. I've been doing some work with API calls from Visual Basic in school lately, and found it both easy and rather fun, so if you need some help I'll be happy to provide it. =)
January 4, 2006, 5:03 PM
QwertyMonster
[quote author=Joe link=topic=13719.msg140473#msg140473 date=1136394192]
Now that TehUser has elaborated on the use of API calls, I think that would be the best way to go. I've been doing some work with API calls from Visual Basic in school lately, and found it both easy and rather fun, so if you need some help I'll be happy to provide it. =)
[/quote]

If your saying you would  help me, then thanks. I would love help. Msg me on msn sometime. :)
January 13, 2006, 11:40 PM

Search