AppleScript key codes for function keys

Discussion in 'Mac Programming' started by mynewromantica, Sep 23, 2011.

  1. mynewromantica macrumors regular

    Aug 3, 2009
    I have a need to use some of the extended function keys in some apple script. (f13-f19) Basically the keys that are only available on the full-size keyboard. How do I find out what those key codes are?
  2. jiminaus macrumors 65816


    Dec 16, 2010
    I figure them to be as follows (courtesy of the free Key Codes app on the mac app store).

    F13 - 105
    F14 - 107
    F15 - 113

    F16 - 106
    F17 - 64
    F18 - 79
    F19 - 80

    BTW In case it's significant, these codes came from a US keyboard. But I'd be surprised if these particular codes were different on different keyboard layouts.

Share This Page