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
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;
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
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
[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
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
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