decrypt Posted June 15, 2004 Posted June 15, 2004 I have seen msn bots created in perl, but i'm not used to perl, and i was wondering if it was possible to make a msn bot in vb.net, and if possible how could i do this? So far i have had no ideas. Also do you know of a example about this? Quote
Arch4ngel Posted June 15, 2004 Posted June 15, 2004 Don't know... what I can do is use the Messenger DLL to access Messenger and retrieve information from my account. But... for the bot.... I really don't know Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
decrypt Posted June 16, 2004 Author Posted June 16, 2004 I found this: http://members.home.nl/b.geertsema/dotMSN/ but i can't figure out how to use it. Whenever i do: Dim blah as dotMSN.messenger blah.connect("blah@hotmail.com", "blah") I get an error... Quote
*Experts* mutant Posted June 16, 2004 *Experts* Posted June 16, 2004 I get an error... You have to be more specific than that :). What is the error? Quote
decrypt Posted June 16, 2004 Author Posted June 16, 2004 (edited) it just says this: > dotMSNBot.exe!dotMSNBot.Form1.Button1_Click(Object sender = {System.Windows.Forms.Button}, System.EventArgs e = {System.EventArgs}) Line 167 + 0x3d bytes Basic [<Non-user Code>] dotMSNBot.exe!dotMSNBot.Form1.Main() Line 2 + 0x1d bytes Basic Here is the whole code so far: Dim msngr1 As Messenger Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click msngr1.Connect(txtUserName.Text, txtPassword.Text) End Sub End Class Public Class Messenger Dim Frm1 As Form1 Public Overloads Sub Connect(ByVal user As String, ByVal password As String) Dim msn1 As DotMSN.Messenger msn1.Connect(user, password) msn1.SetStatus(DotMSN.MSNStatus.Online) End Sub End Class I have no idea how to work this .dll, and i do not know how it connects, zone alarm doesn't even say that it is connecting to the internet, i think i am doing something wrong... Edited June 16, 2004 by decrypt Quote
*Experts* Nerseus Posted June 16, 2004 *Experts* Posted June 16, 2004 Maybe you should state your intentions. To me, a "bot" typically means a computer program running to simulate a real user. Why would you want a "bot" for MSN? Or, are you asking "How do I interface with MSN service"? As in, are you trying to write your own instant messaging software that uses the messenger service DLL to talk to other MSN clients (something like Trillian, which "talks" to MSN, AOL, Yahoo, ICQ, etc.). In any case, I doubt I could help... but thought I'd ask some questions since I didn't quite understand what you wanted. -ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Arch4ngel Posted June 16, 2004 Posted June 16, 2004 Nerseus, What I understood is that he want to make his own messaging soft using MSN DLL... but I may be wrong. But I don't have a damn idea how to do that. He'll have to search to find the right path. :p Bot... bot... bot... It's so bad to be bot. (if you want to simulate your connection... why do you want to do that ?) Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
decrypt Posted June 16, 2004 Author Posted June 16, 2004 I got it all working now. What i was trying to do was create a msn bot. What that does is it acts like an IRC bot. I can add the bot into a conversation and say something like "!smack decrypt" and the bot would message back "/me smacks decrypt in the face with a rubber glove" something like that. I will get it so that it does irc commands even though it is not supported in msn messenger, but that should be easy to do since it's been done in messenger plus. Anyways i'll tell you if i need some help, i think this is one of the hardest projects i've done yet... :P Quote
Arch4ngel Posted June 16, 2004 Posted June 16, 2004 Well... good luck ! You'll need it ! :p Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
decrypt Posted June 16, 2004 Author Posted June 16, 2004 my program creates new tabs for every new message. The problem is, is how do i get it to do the same thing for everysingle tab? For example: Someone starts up a new message, the program creates the new tab, and then the person starts sending messages to it. I know how to do this using new windows, but i want to make it tabbed for easy browsing, and so i just have 1 window open all the time. I think i might end up doing windowed though... this is kind of hard to explain :P is there a feature in vb.net that enables you to put a window inside another window, so that it will create a new tab and than create a new window, but locks the window inside the program. Is this possible? Help would be greatly appreciated :) Quote
Arch4ngel Posted June 18, 2004 Posted June 18, 2004 Look at MDI program. MDIParent is your main window while MDIChild are secondary window inside your main one. Good Luck. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
decrypt Posted June 20, 2004 Author Posted June 20, 2004 thanks alot! :) I looked it up on the internet and i got this: "Create a new Project called MDIDemo By default you will be having a form called form1, rename it to frmMdiChild Add one more form called frmMDIForm Set the IsMDIContainer property value to True Write the following code in the Form Load event of the frmMDIForm Private Sub frmMDIForm_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles MyBase.Load Dim frmchild As New frmMdiChild() frmchild.MdiParent = Me frmchild.Show() End Sub " I don't know how to make it so that it will be in just one of the tabs... how would i do this? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.