Announcement

Collapse
No announcement yet.

Waitkey$ extended keyboard code table?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Waitkey$ extended keyboard code table?

    I wanted to allow users of my interpreter to configure extended keys such as F1 through F12 and others, letting them associate a string of their choice with the corresponding extended key code. The Waitkey$ help file topic gives Chr$(0, 59) as an example where 59 is the extended key code for F1.

    I figured that perhaps in the MSDN, WinAPI, or somewhere, I’d find a table that lists all extended key codes that Waitkey$ recognizes. However, I searched but couldn’t find it. Is there an official list? In the WinAPI file, under “Virtual Keys, Standard Set”, I found constants such as, %VK_F1, %VK_F2, etc… But the values for those do not seem to match the values used by Waitkey$. Are Waitkey$ extended codes unique to PB?

    I actually already have a list of the key codes that I needed, and I know that I can find the others experimentally/programmatically. However, I need to know how to write this up in my help file. For instance, I’d want to tell people to look at topic xyz in the MSDN for the official list of extended codes they could use.

    I did a search, and found a link for a similar question.



    But the answer involved generating the codes, instead of saying whether there’s an official published list, which is really what I'm after:
    Daniel Corbier
    uCalc Fast Math Parser
    uCalc Language Builder
    sigpic

    #2
    Originally posted by Daniel Corbier View Post
    I actually already have a list of the key codes that I needed, and I know that I can find the others experimentally/programmatically. However, I need to know how to write this up in my help file. For instance, I’d want to tell people to look at topic xyz in the MSDN for the official list of extended codes they could use.
    Daniel, I'm afraid there is no such list. I had to do some hacking myself when creating my KMIGET function. See here.

    Cheers
    Albert
    „Let the machine do the dirty work.“
    The Elements of Programming Style, Brian W. Kernighan, P. J. Plauger 1978

    Comment


      #3
      Originally posted by Daniel Corbier View Post
      Is there an official list?

      and
      http://www.math.msu.su/~vfnik/WinApi/other/virtualkeycodes.html
      -=Alex=-

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎