Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Reading all nonblocking keystrokes in Win2000

by c-era (Curate)
on Nov 16, 2001 at 00:35 UTC ( #125662=note: print w/replies, xml ) Need Help??

in reply to Reading all nonblocking keystrokes in Win2000

Look up ASCII, and change print $c; to  print ord($c);. The delete key doesn't have a character map (which is why you get a space) your program will need to compair with the delete character, not the space character. Also look at what pressing return does ; )

Replies are listed 'Best First'.
Re: Reading all nonblocking keystrokes in Win2000
by Washizu (Scribe) on Nov 16, 2001 at 01:38 UTC

    Good thinking, but unfortunatly I tried that already.

    When I use 'print ord $c' it prints 0 for the arrow keys and insert, delete, home, etc. It prints the actual codes for ENTER and SPACE, but I'd like to have everything.

    The best offense is a good offense.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://125662]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2022-01-20 06:36 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (56 votes). Check out past polls.