comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com (Tom Moran)
Subject: Re: key strokes intercept
Date: 1999/04/01
Date: 1999-04-01T00:00:00+00:00	[thread overview]
Message-ID: <3703c918.218348@news.pacbell.net> (raw)
In-Reply-To: 3705227f.749682976@news.dsuper.net

>>KeyDown, KeyUp, KeyCode etc are Windows events. Visual Basic provides
>>a nice framework for handling events nicely. Plain Ada does not; you
>>need a thick binding to Windows
>So right now there's no way to do what I want if I'm writing a DOS
>program ?  I have maybe two weeks to get it into my program if I
>decide that I want to try.  I'd use it as part of a password input
>procedure, you know the asterix replacing whatever is typed in at the
>keyboard.
>... replace the
>key code (or whatever I`ll have to play with) with the backspace
>followed by the asterix, if I can't actually turn off the screen ECHO
No - there was just confusion about what you want.  The KeyDown etc VB
events are quite unnecessary for your password entry.  Use the
Get_Immediate as you plan, or, in DOS, use the DOS call to get a
character with no echo (see your compiler's vendor supplied library to
see how to make int21 or BIOS calls with your compiler).  
  The event approach is normally used in Windows and is most easily
done there using one of the thick Ada bindings.  You can also do it
using a separate task in DOS, but that's major overkill for password
entry.
  




  reply	other threads:[~1999-04-01  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-30  0:00 key strokes intercept fluffy_puff
1999-03-30  0:00 ` Matthew Heaney
1999-03-30  0:00   ` Magnus Larsson
1999-03-30  0:00     ` Tom Moran
1999-03-30  0:00   ` Marin David Condic
1999-04-01  0:00     ` Aidan Skinner
1999-04-05  0:00       ` Marin David Condic
1999-03-31  0:00   ` fluffy_bud
1999-03-30  0:00 ` David C. Hoos, Sr.
1999-03-31  0:00   ` fluffy_bud
1999-04-01  0:00     ` Aidan Skinner
1999-03-31  0:00 ` Stephen Leake
1999-04-01  0:00   ` fluffy_doo
1999-04-01  0:00     ` Tom Moran [this message]
1999-04-02  0:00     ` Jerry van Dijk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox