New topic: "Function keys" (F1, F2, ...) keycodes?
<http://forums.realsoftware.com/viewtopic.php?t=21795> Page 1 of 1 [ 7 posts ] Previous topic | Next topic Author Message Patrick Post subject: "Function keys" (F1, F2, ...) keycodes?Posted: Sun Apr 13, 2008 8:26 am Joined: Fri Sep 30, 2005 11:58 am Posts: 81 Hello, The REALbasic's Language Reference only mentions the keycodes of the 15 first Function keys: Quote:Key KeyCode F1 7A F2 78 F3 63 F4 76 F5 60 F6 61 F7 62 F8 64 F9 65 F10 6D F11 67 F12 6F F13 69 F14 6B F15 71 Could someone tell me the keycodes of the next Functions keys please? (From F17 until F19 (or even until F24 on some keyboards) please.) This information is missing from the REALbasic's Language Reference. And my keyboard has only 16 Function keys, so I can't write a program which tests them and returns me their keycode. So I need someone else to help me please. Thanks _________________ Mac OS X 10.5 REALbasic 2007r5 Top Greiffenberg Post subject: Re: "Function keys" (F1, F2, ...) keycodes?Posted: Sun Apr 13, 2008 10:09 am Joined: Wed May 16, 2007 1:50 am Posts: 156 Location: Denmark I'm sorry I cannot help, but remember that keycodes can differ from keyboard to keyboard (diff. languages).... Just curious, what on earth are you going to use all these function keys for? regards Greiffenberg Top jefftullin Post subject: Re: "Function keys" (F1, F2, ...) keycodes?Posted: Mon Apr 14, 2008 2:00 am Joined: Wed Nov 15, 2006 3:50 pm Posts: 695 More to the point, if you assign functions to them, how will you or any other user of a 'standard' keyboard, actually run the functions? You might consider a setup screen, as they used to do in DOS games, where you have a function, select it, then press they key that you want to assign to the function. (This is UP, this is DOWN, this is FIRE...) Let the user set it up themselves... Top Patrick Post subject: Re: "Function keys" (F1, F2, ...) keycodes?Posted: Mon Apr 14, 2008 2:51 pm Joined: Fri Sep 30, 2005 11:58 am Posts: 81 Don't prejudge what I want to do with these Function keys... My need is only to know the keycodes of the Functions keys from F17 to F19 (or even to F24) please. (Because they are not listed in the REALbasic's Language Reference.) Nobody knows them? Thanks, Best regards. _________________ Mac OS X 10.5 REALbasic 2007r5 Top jefftullin Post subject: Re: "Function keys" (F1, F2, ...) keycodes?Posted: Mon Apr 14, 2008 3:00 pm Joined: Wed Nov 15, 2006 3:50 pm Posts: 695 One quick bit of research turns up good news and bad news. Good news: here are some keycode, published to the web by someone who just pressed the keys and checked the values: http://www.kdingo.net/?itemid=462 Keys With No Function -- Eject, keycode 204 (next to F12) -- F13, keycode 182 -- F14, keycode 183 -- F15, keycode 184 -- F17, keycode 131 -- F18, keycode 247 -- F19, keycode 132 bad news: the F14 does not match yours.., so the others probably dont either. These values are from an Apple keyboard. Top roger Post subject: Re: "Function keys" (F1, F2, ...) keycodes?Posted: Sun Aug 23, 2009 4:54 pm Joined: Tue Oct 25, 2005 1:57 pm Posts: 305 I know it's a little late in the game, but for what it's worth, here are the key codes for F16 through F19, for an Apple keyboard, obtained with REALBasic code: Code:F16: &h6A F17: &h40 F18: &h4F F19: &h50 _________________ RB2009r2.1 Personal on OSX 10.5.7 and XP SP3 http://freeware.the-meiers.org http://opensource.the-meiers.org Top DaveS Post subject: Re: "Function keys" (F1, F2, ...) keycodes?Posted: Sun Aug 23, 2009 5:39 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 1469 Location: San Diego, CA Keycodes differ from on different keyboard layouts And as far as the function keys are concerned not all of them fire an event to RB [by Apples design, not RB] And YOU MUST HAVE the Fn function activated, otherwise hardly ANY of them are available On Windows.... who knows.... As far as "pre-judging"... that was in my opinion an uncalled for response... you were just being warned that mucking with certain types of keys can cause unwanted effects..... _________________ Dave Sisemore MacPro, RB2008r3.1 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 7 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
