Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inkey Literal Key Display
#1
So we press F1. Ever just wanted to see F1 displayed instead of: Chr$(0) + ; Huh 

Well now you can. Hey it was either that or buy you guys a Popeil Pocket Fisherman for X-mas.

Anyway, it works with the key combos available in INKEY$, too. The guts can are good for conversion uses, which funnily enough I had one of those that I backward engineered to make this demo.

Edit: Forum messed up some ascii characters, so I redid it using the QB64 IDE Export feature and that failed miserably, too.

So if only we had a forum that wouldn't MUCK UP a perfectly good code block without switching ascii characters like turning F's into M's... Oh wait, we do!

https://www.tapatalk.com/groups/qbasic/l...ml#p214281  Literal Inkey$ Code.

Pete

PS I'll add a zip file later; right now I'm too kissed, opay? 

Edit: Zip added. Two files. One with string characters, and one with string 'numbers'.

Now two issues, What sucks about GLUT is Ctrl + J and Ctrl + Enter both return Chr$(10) with Inkey, and if I used _KeyHit both would return Chr$(13). So when we press Ctrl + Enter its going to display Ctrl + J. Also, both Inkey$ and _KeyHit return like values for Ctrl + Delete and Ctrl + Backspace, so we have a key duplication error there as well. Everything else should display correctly, if not, it's a bug... I mean a feature!

Pete


Attached Files
.7z   inkey literal key display.7z (Size: 2.46 KB / Downloads: 9)
Reply


Messages In This Thread
Inkey Literal Key Display - by Pete - 01-05-2026, 09:16 PM
RE: Inkey Literal Key Display - by bplus - 01-05-2026, 09:25 PM
RE: Inkey Literal Key Display - by bplus - 01-06-2026, 04:04 AM
RE: Inkey Literal Key Display - by Pete - 01-06-2026, 10:00 PM
RE: Inkey Literal Key Display - by Pete - 01-07-2026, 01:59 AM
RE: Inkey Literal Key Display - by Pete - 01-07-2026, 03:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Wink display unicode text(by windows api) qbfans 10 905 12-21-2025, 12:17 AM
Last Post: TDarcos
  Vacuum Flourescent Display Clock With Alarm SierraKen 5 1,176 06-07-2025, 11:02 PM
Last Post: SierraKen
  Volume display utility eoredson 0 490 09-30-2023, 01:06 AM
Last Post: eoredson

Forum Jump:


Users browsing this thread: 1 Guest(s)