Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Reading all nonblocking keystrokes in Win2000

by c-era (Curate)
on Nov 16, 2001 at 00:35 UTC ( [id://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.

    -----------------------------------
    Washizu
    The best offense is a good offense.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found