Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chr$(135) and _Keyhit
#4
(01-13-2025, 07:59 AM)Pete Wrote: So I'm mostly just curious to learn why the different values for k& representing keys like Shift, Ctrl, and Alt (10034, 10036, 10038) respectively, all get converted to Chr$(0) + Chr$(135) with MKI$().

Thanks,

Pete

The simple answer here, I think, is overflow values.

INTEGER can only hold values up to 5 digits.   _KEYHIT returns 6-digit numbers.  You're going to overflow the bucket ya trying to cram yo numbers into, like that par'ner!
Reply


Messages In This Thread
Chr$(135) and _Keyhit - by Pete - 01-13-2025, 07:59 AM
RE: Chr$(135) and _Keyhit - by DSMan195276 - 01-13-2025, 08:26 AM
RE: Chr$(135) and _Keyhit - by SMcNeill - 01-13-2025, 02:17 PM
RE: Chr$(135) and _Keyhit - by SMcNeill - 01-13-2025, 02:29 PM
RE: Chr$(135) and _Keyhit - by eoredson - 02-06-2025, 05:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  printing characters > chr$(127) madscijr 18 2,208 03-11-2025, 07:33 PM
Last Post: madscijr
  _KEYHIT Riddle me this??? Pete 5 1,332 08-16-2024, 09:47 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)