Valhalla Legends Forums Archive | Battle.net Bot Development | Noob Question

AuthorMessageTime
Dyndrilliac
What's the code for the enter button in "On KeyPress" functions?

Example:
[code]
Private Sub Text1_KeyPress(KeyAscii As Integer)

End Sub
[/code]
October 16, 2003, 8:44 PM
Skywing
Try 13.

In the future, please keep in mind that this forum is for issues relating [u]directly[/u] to Battle.net and writing bots for it. Just because somebody might use this code snippet in a bot doesn't mean that it should be posted here and not elsewhere, say the General Programming forum.
October 16, 2003, 8:48 PM
Dyndrilliac
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
October 16, 2003, 8:56 PM
Adron
[quote author=Dyndrilliac link=board=17;threadid=3115;start=0#msg24374 date=1066337765]
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
[/quote]

Your purpose shouldn't matter. I shouldn't ask who makes the greatest pizzas here just because I intend to have one of those great pizzas while I'm making plans for my bot development?

Things may be related, but if they're not obviously directly connected to things that happen in bot making, another forum might be more appropriate. Now, if there was a place that only sold pizza's to bot developers it would be a totally different thing....
October 16, 2003, 9:24 PM
Skywing
[quote author=Dyndrilliac link=board=17;threadid=3115;start=0#msg24374 date=1066337765]
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
[/quote]
I think you misunderstood me. What I meant was: this forum is for discussions of stuff like the behavior of the Battle.net servers, the formats/behavior of Battle.net chatserver messages, etc.

So, if you have a question related to Visual Basic controls that you happen to be using in your Battle.net bot, you should post in the General Programming forum. If you had a question about a specific Battle.net issue, such as how a certain message is formatted, this forum would be the appropriate place to post in.
October 16, 2003, 9:33 PM
UserLoser
[quote author=Skywing link=board=17;threadid=3115;start=0#msg24381 date=1066339988]So, if you have a question related to Visual Basic controls that you happen to be using in your Battle.net bot, you should post in the General Programming forum. If you had a question about a specific Battle.net issue, such as how a certain message is formatted, this forum would be the appropriate place to post in.
[/quote]

How about you share 0x53 + 0x54 format :)
October 16, 2003, 9:35 PM
Skywing
[quote author=UserLoser link=board=17;threadid=3115;start=0#msg24383 date=1066340138]
How about you share 0x53 + 0x54 format :)
[/quote]

Documentation on those messages is available in the BNLS Protocol Specification.
October 16, 2003, 9:45 PM
UserLoser
[quote author=Skywing link=board=17;threadid=3115;start=0#msg24385 date=1066340730]
[quote author=UserLoser link=board=17;threadid=3115;start=0#msg24383 date=1066340138]
How about you share 0x53 + 0x54 format :)
[/quote]

Documentation on those messages is available in the BNLS Protocol Specification.
[/quote]

Yes, but that just tells a user to insert the data recieved from BNLS, and toss in their username.
October 16, 2003, 11:24 PM
iago
[quote author=Adron link=board=17;threadid=3115;start=0#msg24379 date=1066339480]
[quote author=Dyndrilliac link=board=17;threadid=3115;start=0#msg24374 date=1066337765]
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
[/quote]

Your purpose shouldn't matter. I shouldn't ask who makes the greatest pizzas here just because I intend to have one of those great pizzas while I'm making plans for my bot development?

Things may be related, but if they're not obviously directly connected to things that happen in bot making, another forum might be more appropriate. Now, if there was a place that only sold pizza's to bot developers it would be a totally different thing....
[/quote]

Is that the secret to bot development? Eating good pizzas?
October 16, 2003, 11:48 PM
hismajesty
[quote author=Adron link=board=17;threadid=3115;start=0#msg24379 date=1066339480]
[quote author=Dyndrilliac link=board=17;threadid=3115;start=0#msg24374 date=1066337765]
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
[/quote]

Your purpose shouldn't matter. I shouldn't ask who makes the greatest pizzas here just because I intend to have one of those great pizzas while I'm making plans for my bot development?

Things may be related, but if they're not obviously directly connected to things that happen in bot making, another forum might be more appropriate. Now, if there was a place that only sold pizza's to bot developers it would be a totally different thing....
[/quote]
Well if the bot was supposed to make the pizza, would that count?
October 17, 2003, 1:02 AM
BlazingKnight
Man. You guys are dicks.
October 17, 2003, 3:30 AM
iago
[quote author=BlazingKnight link=board=17;threadid=3115;start=0#msg24432 date=1066361412]
Man. You guys are dicks.
[/quote]

hmm? His question was answered, wasn't it?
October 17, 2003, 3:35 AM
Grok
[quote author=BlazingKnight link=board=17;threadid=3115;start=0#msg24432 date=1066361412]
Man. You guys are dicks.
[/quote]

Right. We suck for hosting a forum for sharing a great deal of information and discussion with anyone and everyone who wants to stop by and read it. We're dicks for putting up with nonstop ingratitude by little dipwads who never put forth any effort to try things on their own, and come here demanding and even expecting that it all be given to them. Then they whine when someone suggests that they make an effort to help keep the forum streamlined by posting a message in the appropriate place.

Yeh, what dicks.
October 17, 2003, 3:41 AM
iago
[quote author=Grok link=board=17;threadid=3115;start=0#msg24436 date=1066362105]
[quote author=BlazingKnight link=board=17;threadid=3115;start=0#msg24432 date=1066361412]
Man. You guys are dicks.
[/quote]

Right. We suck for hosting a forum for sharing a great deal of information and discussion with anyone and everyone who wants to stop by and read it. We're dicks for putting up with nonstop ingratitude by little dipwads who never put forth any effort to try things on their own, and come here demanding and even expecting that it all be given to them. Then they whine when someone suggests that they make an effort to help keep the forum streamlined by posting a message in the appropriate place.

Yeh, what dicks.
[/quote]

Woo, gogo Grok!!
October 17, 2003, 4:22 AM
Skywing
[quote author=BlazingKnight link=board=17;threadid=3115;start=0#msg24432 date=1066361412]
Man. You guys are dicks.
[/quote]
You might note that while politely informing the original poster that his/her post was slightly off-topic, an answer was still given.

You're welcome to not use this free service if you don't like it.
October 17, 2003, 7:40 AM
Adron
[quote author=hismajesty link=board=17;threadid=3115;start=0#msg24414 date=1066352532]
Well if the bot was supposed to make the pizza, would that count?
[/quote]

Maybe. If the bot served the pizzas over the connection to battle.net or botnet it would probably count.

[quote author=iago link=board=17;threadid=3115;start=0#msg24402 date=1066348089]
Is that the secret to bot development? Eating good pizzas?
[/quote]

Good pizzas and lots of sugar (chocolate, candy, etc) yes. That's what keeps you going through all the long hours reversing the inner workings of Blizzard software.
October 17, 2003, 7:53 AM
WiLD
[quote]
Good pizzas and lots of sugar (chocolate, candy, etc) yes. That's what keeps you going through all the long hours reversing the inner workings of Blizzard software.
[/quote]
really? i never knew that, i stay up till about 2am and get so tired my eyes drop tears =/
I might get my self some candy 2night and put it to the test, because it is the weekend so it doesnt matter if it fails!

oyes Dyndrilliac,
even youve been given a hint what to do, ill give you the code.
[code]
If KeyAscii = 13 And Text1.Text <> "" Then
KeyAscii = 0
Dim strSend As String
strSend = Text1.Text
CleanSlateBot2.Send Text1.Text
AddChat "<" & varCurrentName & "> ", vbCyan, strSend & vbNewLine, vbWhite
[/code]
just to prevent some further questions you'll need the CSB (Cleanslatebot) OCX, AddChat module and a Txt box named Text1 =/

Ok, i might have helped alittle too much for him to learn but i was once a "newb" and i figured out most of the above on my own but i did get stuck. When you get stuck you get annonyed then you get pissed then you give up and ........

Ok Ok, ill shutup
October 17, 2003, 8:10 AM
Dyndrilliac
Erm, thanks. But just so you know Im not using cleanslate bot =D Im going locally hashed.
October 17, 2003, 1:21 PM
Adron
[quote author=WiLD link=board=17;threadid=3115;start=15#msg24450 date=1066378239]
really? i never knew that, i stay up till about 2am and get so tired my eyes drop tears =/
I might get my self some candy 2night and put it to the test, because it is the weekend so it doesnt matter if it fails!
[/quote]

Sugar and loud music will help you work miracles in the nights.
October 17, 2003, 1:48 PM
St0rm.iD
I've found Phish to be especially good for hacking out reams of code. Get some of their 15 minute jam songs, they put you in the rhythm but don't make you focus attention on the song.

BTW, softice sucks when it comes to listening to mp3s :/ I have to keep my minidisc by the computer.
October 19, 2003, 3:18 AM
Adron
[quote author=St0rm.iD link=board=17;threadid=3115;start=15#msg24550 date=1066533538]
BTW, softice sucks when it comes to listening to mp3s :/ I have to keep my minidisc by the computer.
[/quote]

That is indeed the one big drawback of softice - freezing everything else as well. One thing that works is to play an audio cd (in the good old analog mode). Softice also makes any chats you have going disconnect if you stay in too long.
October 19, 2003, 11:07 AM
iago
[quote author=Adron link=board=17;threadid=3115;start=15#msg24570 date=1066561641]
[quote author=St0rm.iD link=board=17;threadid=3115;start=15#msg24550 date=1066533538]
BTW, softice sucks when it comes to listening to mp3s :/ I have to keep my minidisc by the computer.
[/quote]

That is indeed the one big drawback of softice - freezing everything else as well. One thing that works is to play an audio cd (in the good old analog mode). Softice also makes any chats you have going disconnect if you stay in too long.
[/quote]

The worst for me was that my DSL modem would give up on me and I would have to reconnect every time, which forced a dialog box to appear and my program to minimize. Now I use a network connection, so it's all good!

Also, you can BUY cd's and play them in a CD-Player (remember those? commercial cd's?)
October 19, 2003, 11:55 AM
Adron
[quote author=iago link=board=17;threadid=3115;start=15#msg24576 date=1066564501]
[quote author=Adron link=board=17;threadid=3115;start=15#msg24570 date=1066561641]
One thing that works is to play an audio cd (in the good old analog mode).
[/quote]

Also, you can BUY cd's and play them in a CD-Player (remember those? commercial cd's?)
[/quote]

Hmm, wasn't that approximately what I suggested? I didn't emphasize buying, but, a cd-rom mostly works as a cd player in analog mode. I even have play/next and stop/prev buttons on mine.
October 19, 2003, 1:28 PM
bmwrb16
[code]Private Sub Text1_KeyPress(KeyAscii As Integer)
Msgbox KeyAscii
End Sub[/code]

just press enter and there it is... or any key
October 19, 2003, 2:33 PM
Adron
[quote author=bmwrb16 link=board=17;threadid=3115;start=15#msg24594 date=1066574031]
[code]Private Sub Text1_KeyPress(KeyAscii As Integer)
Msgbox KeyAscii
End Sub[/code]

just press enter and there it is... or any key
[/quote]

That's the best answer so far - telling him how to find out on his own!
October 19, 2003, 3:16 PM
iago
[quote author=Adron link=board=17;threadid=3115;start=15#msg24596 date=1066576610]
[quote author=bmwrb16 link=board=17;threadid=3115;start=15#msg24594 date=1066574031]
[code]Private Sub Text1_KeyPress(KeyAscii As Integer)
Msgbox KeyAscii
End Sub[/code]

just press enter and there it is... or any key
[/quote]

That's the best answer so far - telling him how to find out on his own!
[/quote]

Don't we usually get flamed for making people find it out on their own?

Incedentally, a very small "Submit" button with default = true (or, better yet, a button with the caption "[u]S[/u]end" would work nicely as well.
October 19, 2003, 10:47 PM
St0rm.iD
[quote author=iago link=board=17;threadid=3115;start=15#msg24650 date=1066603669]
[quote author=Adron link=board=17;threadid=3115;start=15#msg24596 date=1066576610]
[quote author=bmwrb16 link=board=17;threadid=3115;start=15#msg24594 date=1066574031]
[code]Private Sub Text1_KeyPress(KeyAscii As Integer)
Msgbox KeyAscii
End Sub[/code]

just press enter and there it is... or any key
[/quote]

That's the best answer so far - telling him how to find out on his own!
[/quote]

Don't we usually get flamed for making people find it out on their own?

Incedentally, a very small "Submit" button with default = true (or, better yet, a button with the caption "[u]S[/u]end" would work nicely as well.
[/quote]

Would work better, in fact.
October 20, 2003, 1:11 AM

Search