Quote:
|
My main problem is the talk function, it will ouput sentences from time to time (because c is so fast, but I don't know how to do that....) and also track the keyboard for a key pressed event.
|
hmmm.. let me see if I get this right, you want it to be able to, like answer every 2 or 3 seconds, without it spilling out what ever it has to say, at the speed of a jiffy right ?
And you want some form of action uppon keypress, that beeing any key, not just some form of waiting for enter to be pressed?
Sounds rather advanced, If his was supposed to be like a talking 'bot of some sort, I would have it spawn a thread, listening on some given port/socket, when it detects anythign there, it should send a random quote to the desired socket.. But that sounds way too advanced for what you're showing here..
I'll be back later tonight looking more closely at your code.