Valhalla Legends Forums Archive | Battle.net Bot Development | Multi form bot

AuthorMessageTime
laurion
does anybody have information on how to make a bot that will load multiple forms (multiple bots in 1 program)? i am having trouble loading more than 1 form, and I am not really sure how to load new login information for each form, any help?
March 21, 2004, 9:28 PM
CrAz3D
[quote author=laurion link=board=17;threadid=5899;start=0#msg50708 date=1079904523]
does anybody have information on how to make a bot that will load multiple forms (multiple bots in 1 program)? i am having trouble loading more than 1 form, and I am not really sure how to load new login information for each form, any help?
[/quote]
Make a MDI form, then make Form1, or w/e your main form is, a MDI child. Load the 'Form1' by an indexing system,

I think that should work, ask LoRd, Feanory too...they made their lovely massbots
March 21, 2004, 9:38 PM
iago
Or you can go to google and look it up
March 21, 2004, 9:59 PM
laurion
thanks
(and sry&thx iago, ill check google first next time [i usually do but i get like 1,000,000 results])
March 22, 2004, 2:23 AM
Null
Where i come from actually finding 1,000,000,000 results that match your search string is a GOOD thing.

I know what u mean thought , u just have to use your intellect and mange throught it , to you find what your looking for.
March 22, 2004, 2:35 AM
iago
You may get 3249032484320 results, but the best are always in the first few pages (almost always)
March 22, 2004, 2:54 AM
Archangel
[quote author=CrAz3D link=board=17;threadid=5899;start=0#msg50710 date=1079905126]
[quote author=laurion link=board=17;threadid=5899;start=0#msg50708 date=1079904523]
does anybody have information on how to make a bot that will load multiple forms (multiple bots in 1 program)? i am having trouble loading more than 1 form, and I am not really sure how to load new login information for each form, any help?
[/quote]
Make a MDI form, then make Form1, or w/e your main form is, a MDI child. Load the 'Form1' by an indexing system,

I think that should work, ask LoRd, Feanory too...they made their lovely massbots
[/quote]

MDI Forms is the easiest way for making a Multi Bot, just remember to declare almost all in private.
March 22, 2004, 3:37 AM
Myndfyr
Mine is using tabbed-pages MDI with the Visual Studio .NET style. :)
March 22, 2004, 5:25 AM
GoSuGaMING
in a mdi just do

public newpage as new form1
------

set newpage = new form1
with newpage
.show
end with
March 22, 2004, 1:45 PM
BaDDBLooD
that's good, but you forgot something more important for a mass bot =)

sending text to a certain MDI Form
March 24, 2004, 2:21 PM
LoRd
[quote author=BaDDBLooD link=board=17;threadid=5899;start=0#msg51401 date=1080138093]
that's good, but you forgot something more important for a mass bot =)

sending text to a certain MDI Form
[/quote]

A Visual Basic program can only consist of one MDI form.
March 24, 2004, 4:00 PM
Archangel
[quote author=BaDDBLooD link=board=17;threadid=5899;start=0#msg51401 date=1080138093]
that's good, but you forgot something more important for a mass bot =)

sending text to a certain MDI Form
[/quote]
ummm... sure.
March 24, 2004, 7:19 PM
Myndfyr
[quote author=BaDDBLooD link=board=17;threadid=5899;start=0#msg51401 date=1080138093]
that's good, but you forgot something more important for a mass bot =)

sending text to a certain MDI Form
[/quote]

Not necessarily; if each Form handles its own connection, then you don't have to worry about sending the appropriate text to the appropriate form.
March 24, 2004, 8:07 PM
Adron
[quote author=Myndfyre link=board=17;threadid=5899;start=0#msg51468 date=1080158829]
[quote author=BaDDBLooD link=board=17;threadid=5899;start=0#msg51401 date=1080138093]
that's good, but you forgot something more important for a mass bot =)

sending text to a certain MDI Form
[/quote]

Not necessarily; if each Form handles its own connection, then you don't have to worry about sending the appropriate text to the appropriate form.
[/quote]

But if you want to send a lot of spam to all the connections at once you need to be able to go through the MDI forms and send text to them.
March 24, 2004, 8:09 PM
Archangel
ex:
colChild(index).Winsock1.sendData
March 24, 2004, 8:19 PM
laurion
[quote author=Archangel link=board=17;threadid=5899;start=0#msg51480 date=1080159564]
ex:
colChild(index).Winsock1.sendData
[/quote]
could u do like colChild(me.index).sckbnet.senddata
March 24, 2004, 8:28 PM
Myndfyr
[quote author=Adron link=board=17;threadid=5899;start=0#msg51471 date=1080158997]
[quote author=Myndfyre link=board=17;threadid=5899;start=0#msg51468 date=1080158829]
[quote author=BaDDBLooD link=board=17;threadid=5899;start=0#msg51401 date=1080138093]
that's good, but you forgot something more important for a mass bot =)

sending text to a certain MDI Form
[/quote]

Not necessarily; if each Form handles its own connection, then you don't have to worry about sending the appropriate text to the appropriate form.
[/quote]

But if you want to send a lot of spam to all the connections at once you need to be able to go through the MDI forms and send text to them.
[/quote]

eww, is this person trying to make a spam bot? :-/
March 24, 2004, 9:02 PM
Archangel
lol a SpamBot eww!!!, you should make something more creative :o
March 24, 2004, 9:07 PM
laurion
[quote author=Archangel link=board=17;threadid=5899;start=15#msg51498 date=1080162433]
lol a SpamBot eww!!!, you should make something more creative :o
[/quote]
what do you mean, creative.. by the way, my bot wont connect, but all the packets and everything are right (it connects, then like sits or something lol)
March 24, 2004, 9:08 PM
Myndfyr
[quote author=Archangel link=board=17;threadid=5899;start=15#msg51498 date=1080162433]
lol a SpamBot eww!!!, you should make something more creative :o
[/quote]

Me, or the person who is trying to make the multi-form bot?

It helps if you use the "Reply with Quote" feature, so that we can know what you're talking about
March 24, 2004, 9:08 PM
Archangel
[quote author=Myndfyre link=board=17;threadid=5899;start=15#msg51501 date=1080162538]
[quote author=Archangel link=board=17;threadid=5899;start=15#msg51498 date=1080162433]
lol a SpamBot eww!!!, you should make something more creative :o
[/quote]

Me, or the person who is trying to make the multi-form bot?

It helps if you use the "Reply with Quote" feature, so that we can know what you're talking about
[/quote]

ohh sorry i wasnt talking about you i was talking about
the person who is trying to make the multi-form bot.
March 24, 2004, 9:10 PM
Archangel
[quote author=laurion link=board=17;threadid=5899;start=15#msg51500 date=1080162487]
[quote author=Archangel link=board=17;threadid=5899;start=15#msg51498 date=1080162433]
lol a SpamBot eww!!!, you should make something more creative :o
[/quote]
what do you mean, creative.. by the way, my bot wont connect, but all the packets and everything are right (it connects, then like sits or something lol)
[/quote]

All declares from a MDI Child have to be Private.
Private - (My conclution)It saves all the data in Ram for each MDI Child.
March 24, 2004, 9:20 PM
BaDDBLooD
btw, i have a program that makes 12 difference connection's, and i have it like connection(3)

how would i go about, telling each connection number to send text to a certain form's text box?

because i was making a quick thing for one of my friends, that allows him to be on 3 aol screennames, but it just says Name#1 (blah)

but i want it to go to 3 seperate mdi children!
March 25, 2004, 12:32 AM
Grok
[quote author=Archangel link=board=17;threadid=5899;start=15#msg51498 date=1080162433]
lol a SpamBot eww!!!, you should make something more creative :o
[/quote]

Nothing wrong with making a spambot. The work that goes into planning, designing, coding, testing, debugging a spambot teaches new programming patterns that may not be in a single-bot design.

I think you meant to say you opposed him using a spambot. But even that is OK on occasion.
March 25, 2004, 12:33 AM
Archangel
[quote author=BaDDBLooD link=board=17;threadid=5899;start=15#msg51539 date=1080174722]
btw, i have a program that makes 12 difference connection's, and i have it like connection(3)

how would i go about, telling each connection number to send text to a certain form's text box?

because i was making a quick thing for one of my friends, that allows him to be on 3 aol screennames, but it just says Name#1 (blah)

but i want it to go to 3 seperate mdi children!
[/quote]

Didn't i said that already?

[quote]
I think you meant to say you opposed him using a spambot. But even that is OK on occasion.
[/quote]

Yes i mean that.

[EDIT] Answer to Grok^^
March 25, 2004, 1:02 AM
laurion
[quote]
my bot wont connect, but all the packets and everything are right (it connects, then like sits or something lol)
[/quote]
Any help please?
March 25, 2004, 1:13 AM
Null
Maybe if u tell us some circumstances , i dont believe anyone here can read code telepathically.
March 25, 2004, 1:54 AM
Archangel
[quote author=NuLL link=board=17;threadid=5899;start=15#msg51547 date=1080179689]
Maybe if u tell us some circumstances , i dont believe anyone here can read code telepathically.
[/quote]
I agree with him. Maybe is the way you using the PacketBuffer.
March 25, 2004, 2:25 AM
laurion
Ok. It sends 0x50 (Below) And then it disconnects [or sits?]
[code]
Public Sub Packet50()
Product = "PX2D"
With PBuffer
.InsertDWORD &H0
.InsertNonNTString "68XI" & Product
.InsertDWORD &HA
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H480
.InsertDWORD &H1033
.InsertDWORD &H1033
.InsertNTString "USA"
.InsertNTString "United States"
.SendPacket &H50
End With
AddText vbGrey, "0x50 Sent"
End Sub
[/code]
Packet Buffer:
[code]
Public Function SendPacket(PacketID As Byte)
If frmMain.sckbnet.State <> sckConnected Then: Exit Function
frmMain.sckbnet.SendData Chr(&HFF) & Chr(PacketID) & MakeWORD(Len(Buffer) + 4) & Buffer
Clear
End Function
[/code]
The mdi form is MDIBot and the child is frmMain
March 25, 2004, 11:09 AM
Archangel
[quote]
frmMain.sckbnet.SendData Chr(&HFF) & Chr(PacketID) & MakeWORD(Len(Buffer) + 4) & Buffer
[/quote]

I think thats your problem.
March 25, 2004, 12:38 PM
laurion
[quote author=Archangel link=board=17;threadid=5899;start=15#msg51601 date=1080218320]
[quote]
frmMain.sckbnet.SendData Chr(&HFF) & Chr(PacketID) & MakeWORD(Len(Buffer) + 4) & Buffer
[/quote]

I think thats your problem.
[/quote]
whats wrong with that? it always worked fine before..
March 25, 2004, 7:52 PM
Archangel
[quote author=laurion link=board=17;threadid=5899;start=30#msg51645 date=1080244331]
[quote author=Archangel link=board=17;threadid=5899;start=15#msg51601 date=1080218320]
[quote]
frmMain.sckbnet.SendData Chr(&HFF) & Chr(PacketID) & MakeWORD(Len(Buffer) + 4) & Buffer
[/quote]

I think thats your problem.
[/quote]
whats wrong with that? it always worked fine before..
[/quote]

Ok you are now using MDIChild Forms, so try this (easy way):
Put Your packet buffer in ur MdiChild.
March 25, 2004, 8:13 PM
Myndfyr
[quote author=Archangel link=board=17;threadid=5899;start=30#msg51650 date=1080245600]
[quote author=laurion link=board=17;threadid=5899;start=30#msg51645 date=1080244331]
[quote author=Archangel link=board=17;threadid=5899;start=15#msg51601 date=1080218320]
[quote]
frmMain.sckbnet.SendData Chr(&HFF) & Chr(PacketID) & MakeWORD(Len(Buffer) + 4) & Buffer
[/quote]

I think thats your problem.
[/quote]
whats wrong with that? it always worked fine before..
[/quote]

Ok you are now using MDIChild Forms, so try this (easy way):
Put Your packet buffer in ur MdiChild.
[/quote]

No, put your Socket control in the MdiChild form.
March 25, 2004, 11:16 PM
laurion
My socket is in the MDIChild form (frmMain) :-\

edit::btw i tried putting packetbuffer in the MDI parent, it didnt help :/
March 26, 2004, 1:09 AM
Archangel
[quote author=laurion link=board=17;threadid=5899;start=30#msg51695 date=1080263350]
My socket is in the MDIChild form (frmMain) :-\

edit::btw i tried putting packetbuffer in the MDI parent, it didnt help :/
[/quote]

huh
did u did:
Me.sckbnet.SendData Chr(&HFF) & Chr(PacketID) & MakeWORD(Len(Buffer) + 4) & Buffer
?
March 26, 2004, 2:34 AM
Myndfyr
[quote author=laurion link=board=17;threadid=5899;start=30#msg51695 date=1080263350]
My socket is in the MDIChild form (frmMain) :-\

edit::btw i tried putting packetbuffer in the MDI parent, it didnt help :/
[/quote]

Why in God's name would you name your MDI child frmMain?!? The point of naming it frmMain is that it is the main form! It should exist only once throughout the duration of the program

Depending on the implementation, I have seen the PacketBuffer class as a module (IIRC). You can run into issues of two separate events (threads) adding data to the PacketBuffer if you only run one global instance. Ideally, you should have one instance of a Socket and once instance of a PacketBuffer in each form through which you are connecting to the server (each MDIChild).

Get better naming conventions though, man. frmMain is not good to use as a frmChild.
March 26, 2004, 2:37 AM
laurion
[quote]frmMain is not good to use as a frmChild.
[/quote]
Oookkk...i dont see why not ;D (im stubborn :P)
March 26, 2004, 11:10 AM
Archangel
[quote author=laurion link=board=17;threadid=5899;start=30#msg51783 date=1080299428]
[quote]frmMain is not good to use as a frmChild.
[/quote]
Oookkk...i dont see why not ;D (im stubborn :P)
[/quote]

But that shouldnt fix your problem.
March 26, 2004, 12:38 PM
Myndfyr
[quote author=laurion link=board=17;threadid=5899;start=30#msg51783 date=1080299428]
[quote]frmMain is not good to use as a frmChild.
[/quote]
Oookkk...i dont see why not ;D (im stubborn :P)
[/quote]

Did you read the second sentence? The point of naming it the main form is that it should exist singly throughout the entire lifetime of the application. It is a common convention and you have it completely ass-backwards. Do whatever you want, but if you want to ever take your experience somewhere else, I suggest you learn proper habits.

Bit as Archangel correctly pointed out, this won't fix your problem.
March 26, 2004, 1:40 PM
Archangel
Well i think your problem is that you dont know how to use VB Functions and u are having troubles, i will tell u this once, start programming other things so later u can develop a bot.
March 26, 2004, 8:14 PM
laurion
[quote author=Archangel link=board=17;threadid=5899;start=30#msg51871 date=1080332071]
Well i think your problem is that you dont know how to use VB Functions and u are having troubles, i will tell u this once, start programming other things so later u can develop a bot.
[/quote]
um buddy ive made bots before, justnever wit mdi child/parent
March 27, 2004, 1:24 AM
Archangel
[quote author=laurion link=board=17;threadid=5899;start=30#msg51964 date=1080350648]
[quote author=Archangel link=board=17;threadid=5899;start=30#msg51871 date=1080332071]
Well i think your problem is that you dont know how to use VB Functions and u are having troubles, i will tell u this once, start programming other things so later u can develop a bot.
[/quote]
um buddy ive made bots before, justnever wit mdi child/parent
[/quote]
If u did your own bot, this shouldnt be hard to resolve.
March 27, 2004, 1:26 AM
SiMi
i released the source code to simi. It was also a client that loaded multiple clients, maybe you can learn from that. I dont know in which websites the source might be in, but its out there.
March 27, 2004, 3:23 AM
Tuberload
[quote author=laurion link=board=17;threadid=5899;start=30#msg51964 date=1080350648]
[quote author=Archangel link=board=17;threadid=5899;start=30#msg51871 date=1080332071]
Well i think your problem is that you dont know how to use VB Functions and u are having troubles, i will tell u this once, start programming other things so later u can develop a bot.
[/quote]
um buddy ive made bots before, justnever wit mdi child/parent
[/quote]

Doesn't VB ship with example source code? I remember when I had 5.0 it did. Anyways you can find examples of how to use MDI Forms on a sites like http://www.planetsourcecode.com. I hope that helps.
March 27, 2004, 6:04 AM

Search