Page 2 of 2

Posted: Sun Jan 27, 2008 8:36 pm
by burger2227
Your number is printed many times because it is using a semicolon after a PRINT that is not LOCATEd. What key is code 2 or 3 anyhow? You would need 128 cases for just keypresses alone!

The idea to learn INP(&H60) is to find out what keypress creates what code.

You can find many of the keys with 2 byte ASCII codes like CHR$(0) + CHR(asciicode) using INKEY instead. Try the arrow keys.

Ted

Posted: Mon Jan 28, 2008 6:43 am
by Sinuvoid
ok, so overall, dont use it :P kk thanks burger, everyone else :)