• Welcome to Valhalla Legends Archive.
 

Console Chatbot (Sending Messages)

Started by Joe[x86], May 22, 2005, 01:31 PM

Previous topic - Next topic

Joe[x86]

Aha, DoEvents. THANK YOU USERLOSER!!! <33.

Thanks to everyone else who tried to help too. <33.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Mephisto

My way of doing it (though C++ oriented, you could do it in VB I think).

I have not tested it yet, but I believe with the API MsgWaitForMultipleObjects(...) you can wait on STD output handles, which in turn could allow you to actively be in a state of accepting console text, which you can have the user input and then send those to battle.net when that handle triggers.

You could also create a new thread dedicated to Battle.net message I/O.  Have it wait for user input, send the message, display the results, and repeat.


|