[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: keycode program



Reply to note from "David B. Kronenfeld"  Sun,
12 Jan 2003 21:27:02 -0800

> The problem wasn't that Myron's code brought NB down, but
> something more sneaky: It made NB impossible to exit from;
> hitting "esc" just returned the value for that key.

What value did it return for Escape? The expected value for an
unshifted Escape is 1. Anything other than 1 would cause the
program to loop back for more input.

Try this simple variant. It returns the scan code for a single key,
then quits. When you press Escape in NB, what scan code does it
report?

XPLeNCODE v2.0
b-gin [UNTITLED]
;*; SCAN1.PM -- C.L.Distefano 1/13/03[cr|lf];*; Obtain the sc
an code [VA$SC] for a single pressed key[cr|lf]{<}PRPress a k
ey to get its Scan Code{>}{<}SX01,{<}RK{>}{>}{<}SX02,{<}VA$SC
{>}{>};*;[cr|lf]{<}SX01,"Scan Code = "+{<}IS02{>}{>}{<}PR@01{
>}{<}EX{>}[cr|lf][cr|lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx
http://users.datarealm.com/xywwweb/