Remember Homer's question, "Where's the Any key?"
I have a somewhat similar question. In "The Manual", section 14 - Key Codes, is listed a bunch of key codes... The one that I am after is mysteriously missing (insert dramatic music here)... The Backspace key...
I am hoping that it was just an oversight and was not included. If so, does anyone know the 'keydown()' code? If not, is there a work-around?
J
(03-04-2026, 06:44 AM)johnno56 Wrote: [ -> ]Remember Homer's question, "Where's the Any key?"
I have a somewhat similar question. In "The Manual", section 14 - Key Codes, is listed a bunch of key codes... The one that I am after is mysteriously missing (insert dramatic music here)... The Backspace key...
I am hoping that it was just an oversight and was not included. If so, does anyone know the 'keydown()' code? If not, is there a work-around?
J
The key code for backspace is 8. If there's no constant listed in the documentation (I just realized that the list is not included in the
online documentation), you can look at an ascii table and try the decimal value.
(03-04-2026, 06:44 AM)johnno56 Wrote: [ -> ]Remember Homer's question, "Where's the Any key?"
I have a somewhat similar question. In "The Manual", section 14 - Key Codes, is listed a bunch of key codes... The one that I am after is mysteriously missing (insert dramatic music here)... The Backspace key...
I am hoping that it was just an oversight and was not included. If so, does anyone know the 'keydown()' code? If not, is there a work-around?
J
perhaps....
constant KEY_BACKSPACE = 8
Code:
set window "BACK TO THE SPACE",400,300
set redraw off
constant KEY_BACKSPACE = 8
while not keydown(KEY_ESCAPE,true)
if keydown(KEY_BACKSPACE,true)
wln "BACKSPACE is pressed"
wln
endif
wait 10
redraw
wend
Thank you. Works like a champion!!
