What's the code for the enter button in "On KeyPress" functions?
Example:
Private Sub Text1_KeyPress(KeyAscii As Integer)
End Sub
Try 13.
In the future, please keep in mind that this forum is for issues relating directly 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 (http://forum.valhallalegends.com/phpbbs/index.php?board=5).
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 from: Dyndrilliac on October 16, 2003, 03:56 PM
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
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 from: Dyndrilliac on October 16, 2003, 03:56 PM
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
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.
Quote from: Skywing on October 16, 2003, 04:33 PMSo, 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.
How about you share 0x53 + 0x54 format :)
Quote from: UserLoser on October 16, 2003, 04:35 PM
How about you share 0x53 + 0x54 format :)
Documentation on those messages is available in the BNLS Protocol Specification (http://www.valhallalegends.com/yoni/BNLSProtocolSpec.txt).
Quote from: Skywing on October 16, 2003, 04:45 PM
Quote from: UserLoser on October 16, 2003, 04:35 PM
How about you share 0x53 + 0x54 format :)
Documentation on those messages is available in the BNLS Protocol Specification (http://www.valhallalegends.com/yoni/BNLSProtocolSpec.txt).
Yes, but that just tells a user to insert the data recieved from BNLS, and toss in their username.
Quote from: Adron on October 16, 2003, 04:24 PM
Quote from: Dyndrilliac on October 16, 2003, 03:56 PM
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
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....
Is that the secret to bot development? Eating good pizzas?
Quote from: Adron on October 16, 2003, 04:24 PM
Quote from: Dyndrilliac on October 16, 2003, 03:56 PM
Well, sorry, I guess I should have mentioned my purpose was to send chat with a text box using the enter button. My apologies.
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....
Well if the bot was supposed to make the pizza, would that count?
Man. You guys are dicks.
Quote from: BlazingKnight on October 16, 2003, 10:30 PM
Man. You guys are dicks.
hmm? His question was answered, wasn't it?
Quote from: BlazingKnight on October 16, 2003, 10:30 PM
Man. You guys are dicks.
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 from: Grok on October 16, 2003, 10:41 PM
Quote from: BlazingKnight on October 16, 2003, 10:30 PM
Man. You guys are dicks.
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.
Woo, gogo Grok!!
Quote from: BlazingKnight on October 16, 2003, 10:30 PM
Man. You guys are dicks.
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.
Quote from: hismajesty on October 16, 2003, 08:02 PM
Well if the bot was supposed to make the pizza, would that count?
Maybe. If the bot served the pizzas over the connection to battle.net or botnet it would probably count.
Quote from: iago on October 16, 2003, 06:48 PM
Is that the secret to bot development? Eating good pizzas?
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
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.
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.
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
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
Erm, thanks. But just so you know Im not using cleanslate bot =D Im going locally hashed.
Quote from: WiLD on October 17, 2003, 03:10 AM
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!
Sugar and loud music will help you work miracles in the nights.
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.
Quote from: St0rm.iD on October 18, 2003, 10:18 PM
BTW, softice sucks when it comes to listening to mp3s :/ I have to keep my minidisc by the computer.
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 from: Adron on October 19, 2003, 06:07 AM
Quote from: St0rm.iD on October 18, 2003, 10:18 PM
BTW, softice sucks when it comes to listening to mp3s :/ I have to keep my minidisc by the computer.
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.
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?)
Quote from: iago on October 19, 2003, 06:55 AM
Quote from: Adron on October 19, 2003, 06:07 AM
One thing that works is to play an audio cd (in the good old analog mode).
Also, you can BUY cd's and play them in a CD-Player (remember those? commercial cd's?)
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.
Private Sub Text1_KeyPress(KeyAscii As Integer)
Msgbox KeyAscii
End Sub
just press enter and there it is... or any key
Quote from: bmwrb16 on October 19, 2003, 09:33 AM
Private Sub Text1_KeyPress(KeyAscii As Integer)
Msgbox KeyAscii
End Sub
just press enter and there it is... or any key
That's the best answer so far - telling him how to find out on his own!
Quote from: Adron on October 19, 2003, 10:16 AM
Quote from: bmwrb16 on October 19, 2003, 09:33 AM
Private Sub Text1_KeyPress(KeyAscii As Integer)
Msgbox KeyAscii
End Sub
just press enter and there it is... or any key
That's the best answer so far - telling him how to find out on his own!
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 "
Send" would work nicely as well.
Quote from: iago on October 19, 2003, 05:47 PM
Quote from: Adron on October 19, 2003, 10:16 AM
Quote from: bmwrb16 on October 19, 2003, 09:33 AM
Private Sub Text1_KeyPress(KeyAscii As Integer)
Msgbox KeyAscii
End Sub
just press enter and there it is... or any key
That's the best answer so far - telling him how to find out on his own!
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 "Send" would work nicely as well.
Would work better, in fact.