Alt-Keys pattern - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Utilities (https://staging.qb64phoenix.com/forumdisplay.php?fid=8) +---- Thread: Alt-Keys pattern (/showthread.php?tid=1822) |
Alt-Keys pattern - eoredson - 07-07-2023 I have been looking at the keyboard scancodes for the keys Alt-A to Alt-Z and found no pattern to them! Are they internal to the electronic keyboard itself? Thanks, Erik. Here is a program to trap and display them: Code: (Select All) Rem $Dynamic RE: Alt-Keys pattern - mnrvovrfc - 07-07-2023 https://qb64phoenix.com/qb64wiki/index.php/KEYHIT Page for _KEYDOWN displays the same chart but this function should be used to detect the states of the shift keys. Using INKEY$ is becoming a little bit outdated these days and some combinations don't work. You should know that by now... trying to trap [CTRL][ALT][DEL] or some other system-wide combination like that. RE: Alt-Keys pattern - bplus - 07-08-2023 Erik try detecting with _KeyHit eg: Code: (Select All) Do RE: Alt-Keys pattern - eoredson - 07-12-2023 My current custom Inkey$ function is thus: Code: (Select All) Function INKEYz$ Note: Inkey$ does not trap Keypad-5 or Ctrl-Keypad-5. |