Re: Non blocking keyboard

2011-10-14 Thread Xiao Yafeng
Good work! thanks for your sharing. ;) On Fri, Oct 14, 2011 at 7:37 AM, Barry Brevik wrote: > Last week I had posted a query about getting keyboard input in a non > blocking way. > > I received several replies, so I thought I would post back the code I > developed which seems to work. > > This is

Non blocking keyboard

2011-10-13 Thread Barry Brevik
Last week I had posted a query about getting keyboard input in a non blocking way. I received several replies, so I thought I would post back the code I developed which seems to work. This is not the code I will end up using; it is more like a proof of concept program. use strict; use warnings;

RE: Non-blocking keyboard?

2011-10-10 Thread Barry Brevik
I want to thank those who responded; it was all good advice. It turns out that what I was looking for was GetEvents. I really need to pay more attention to the module docs. > > I think you wanted to call PeekInput() instead of Input() here. > > But GetEvents() may be even better if you only wan

RE: Non-blocking keyboard?

2011-10-07 Thread Jan Dubois
On Fri, 07 Oct 2011, Barry Brevik wrote: > I'm writing a program where a process runs in a loop. I want to > process keyboard input without disturbing the main process in the > loop. I'm trying to use the Win32::Console module for this task (see > code below), but the module blocks on the Input sta

RE: Non-blocking keyboard?

2011-10-07 Thread Ken Slater
[mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of JONES, > ROBERT E CTR USAF AETC TTMS/TTMS > Sent: Friday, October 07, 2011 1:06 PM > To: Barry Brevik; perl-win32-users@listserv.activestate.com > Subject: RE: Non-blocking keyboard? > > > You migh

RE: Non-blocking keyboard?

2011-10-07 Thread JONES, ROBERT E CTR USAF AETC TTMS/TTMS
11:46 AM To: perl-win32-users@listserv.activestate.com Subject: Non-blocking keyboard? I'm writing a program where a process runs in a loop. I want to process keyboard input without disturbing the main process in the loop. I'm trying to use the Win32::Console module for this task (see

Non-blocking keyboard?

2011-10-07 Thread Barry Brevik
I'm writing a program where a process runs in a loop. I want to process keyboard input without disturbing the main process in the loop. I'm trying to use the Win32::Console module for this task (see code below), but the module blocks on the Input statement. Is there some way to make this non-bloc