From: | Nick Clover |
Date: | 27 Sep 2000 at 19:32:01 |
Subject: | Re: EventCodes and Keys |
Hello Gareth
On 27-Sep-00, you wrote:
> Hello,
>
> This is probably really obvious, but when I'm scanning for a keypress event
> (IDCMP $400) in a loop, and it detects one, how do I get the ASCII code of
> that character?
>
> I've tried EventCode, and it just returns the decimal equivalent of the
> rawkey codes in the back of the manual. Short of creating a lookup table, is
> there any way of getting the ASCII equivalent of this rawkey code?
Just use something like:
repeat
ev.l=waitevent
keycode.s=ASC(inkey$)
WaitTOF_
until ev=$400
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie