You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
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.
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.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: