comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: GET_KBRD(0) doesn't work in Windows NT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: GET_KBRD(0) doesn't work in Windows NT [message #9866] Fri, 29 August 1997 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Liam Gumley wrote:

> Under IDL 5.0.2 on my SGI Unix box, the following code will keep
> displaying the message until a key is pressed.
>
> while get_kbrd(0) eq '' do print, 'Press any key to stop'
>
> Under IDL 5.0.2 on a PC running Windows NT 3.51, pressing a key has no
> effect - I have to kill IDL to get out of the loop.
>
> Is this a well known problem with GET_KBRD()? If so, how do I get a
> single keypress in Windows?

It turns out that I was pressing the 'Enter' key, and this is what caused
IDL to stop responding in NT 3.51. The online help does warn against
trying to get keypresses from control keys, but I guess I was used to
getting keypress events from the 'Enter' key in Unix, and I was expecting
it to work under NT (silly me). Keypresses from normal alphanumeric keys
seem to work as expected.

Cheers,
Liam.
[Message index]
 
Read Message
Read Message
Previous Topic: minimizing spawned window in win95
Next Topic: Font problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 13:03:32 PDT 2025

Total time taken to generate the page: 0.56117 seconds