Valhalla Legends Forums Archive | Battle.net Bot Development | talking in channels

AuthorMessageTime
13-yr-Old-Newb
I just finished making my first ever bot(using vb). It doesn't do much, just connect to battle.net on CHAT. I want to know how I can make a chat window so I can at least see the things that people are saying and maybe even be able to talk back! :D If someone could help me out with this that would be great.
Thanks,
--13-yr-old-newb
November 27, 2003, 9:40 PM
13-yr-Old-Newb
Oh yeah, I'm not using csb if that matters =\
--13-yr-old-newb
November 27, 2003, 9:46 PM
iago
Using CSB to connect to CHAT would be incredibly stupid.
November 27, 2003, 10:03 PM
13-yr-Old-Newb
Sorry, I didn't know. I have never used csb before and I thought maybe it would does something to connect to chat...?
--13-yr-old-newb
November 27, 2003, 10:07 PM
hismajesty
Did you perhaps try the RTB control?
November 27, 2003, 10:22 PM
ObsidianWolf
perhaps you could show some patience until after i was done eating and i would have told you?

Take the what i have shown you so far

add a text box
in the text box type
[code]
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
winsock1.senddata text2.text & vbcrlf
text2.text=""

End If

End Sub
[/code]

didnt show him how to use rtb, he wanted something simple.
Only had him add winsock
November 27, 2003, 11:04 PM
ObsidianWolf
no he is not, i was contacting him through aim, hes not using CSB. I instructed him on adding the components and such and it only contains a textbox and a winsock.

It doesnt parse the data at all.
Thats the next step, taking it slow he is after eager to learn.

although i hope he would use CSB after i get him somewhat educated in vb. Atleast educated to the point that he knows a how to figure stuff out.
November 27, 2003, 11:11 PM
iago
[quote author=UserLoser. link=board=17;threadid=3901;start=0#msg32119 date=1069974486]
I believe he said he was using CleanSlateBot - So I don't think winsock1.senddata helps him.
[/quote]

[quote author=13-yr-Old-Newb link=board=17;threadid=3901;start=0#msg32093 date=1069969564]
Oh yeah, I'm not using csb if that matters =\
--13-yr-old-newb
[/quote]
November 27, 2003, 11:41 PM
iago
[quote author=warz link=board=17;threadid=3901;start=0#msg32165 date=1069989977]
-1 for trying to cover that up, but being sloppy and getting quoted.
[/quote]

knock it off with the karma, it just gets irritating.
November 28, 2003, 3:41 AM
laurion
[quote author=ObsidianWolf link=board=17;threadid=3901;start=0#msg32115 date=1069974279]
perhaps you could show some patience until after i was done eating and i would have told you?

Take the what i have shown you so far

add a text box
in the text box type
[code]
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
winsock1.senddata text2.text & vbcrlf
text2.text=""

End If

End Sub
[/code]

didnt show him how to use rtb, he wanted something simple.
Only had him add winsock
[/quote]
keyascii = 0 unless you like beeps :-p
November 28, 2003, 6:40 PM
13-yr-Old-Newb
KeyAscii = 13, I can't talk in channels if it = 0
November 28, 2003, 8:38 PM
hismajesty
[quote author=laurion link=board=17;threadid=3901;start=0#msg32269 date=1070044837]
unless you like beeps :-p
[/quote]

In which case he could do...
[code]
Private Sub Form_Load()
Do
Beep
Loop
End Sub
[/code]

:P
November 28, 2003, 8:39 PM
iago
[quote author=UserLoser. link=board=17;threadid=3901;start=0#msg32281 date=1070051975]
[quote author=13-yr-Old-Newb link=board=17;threadid=3901;start=0#msg32279 date=1070051898]
KeyAscii = 13, I can't talk in channels if it = 0
[/quote]

[size=4][font=Tahoma]No, he means after you send the text, and clear your textbox, put KeyAscii = 0[/font][/size]
[/quote]

Changing your size like that is just plain rude :P
November 28, 2003, 9:28 PM

Search