Link to home
Start Free TrialLog in
Avatar of sgaggerj
sgaggerjFlag for United States of America

asked on

Console app w/ multiple threads and console input.

Hi all,

i'm writing a console app that has multiple threads that are kicked off at the start.

In one of the threads i need to monitor the console for input from the user (terminated by an enter or return), but i can't have the other threads blocked.

I also need to have the input from the user available.

I've been looking at: http://www.developer.com/net/net/article.php/11087_2193301_1
and i can hook the keyboard, and detect when a certain key is pressed, but i can't seem to get the input the user entered.

can someone guide me in the right direction, code would be preferred.

TIA!

J
ASKER CERTIFIED SOLUTION
Avatar of Slow_mo
Slow_mo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sgaggerj

ASKER

Perfect! thanks!