10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windows日本語環境におけるJIS配列とUS配列のスキャンコードを全て列挙してみた

Last updated at Posted at 2020-07-24

前書き

Windowsにおいてキーの割り当てを変更する方法としては、主に以下の4つが挙げられます。

  1. キーボード側で変更(DIPスイッチなど)
  2. キーボード上のソフトウェア側で変更(プログラマブルキーボードなど)
  3. OS側で変更(レジストリ操作。KeySwapやChangeKeyなどでも)
  4. ソフトウェア側で変更(AutoHotkeyや窓使いの憂鬱など)

どのキーボードでも対応できるのは 3. と 4. です。
このうち 3. のレジストリ操作で必要なのがスキャンコードなのですが、ネットで調べるとスキャンコードセットが複数出てくる1わ、特殊なキーについての記載はなかったりするわで困ることがあります。
実際私は過去にUS配列キーボードで変換キー・無変換キーをレジストリ変更で割り当てる2際にハマりました。

そこでもういっそWindowsで使える全部のスキャンコードを調べて一覧表を作ろうと思った次第です。

なお、この記事はスキャンコードを列挙することが目的のため、実際の変更方法などについては他の記事を参照してください。

調査方法・凡例

次の手順を、スキャンコード0x0000--0x007F、0xE000--0xE07Fの全てについて実施しました(一部例外あり)。

  • ChangeKeyを用いて、調査・入力に使わないキーを任意のスキャンコードに置換、再起動で反映
  • キー押下の結果をAutoHotkeyのツールとKeymillのソフトの両方で確認し、以下にリストアップ

Windows日本語環境では、ハードウェアキーボードレイアウトという設定項目があり、
「日本語キーボード (106/109 キー)」「英語キーボード (101/102 キー)」の2種類から、自分が用いているキーボードに応じて大元のキー配列を変更することができます。
今回はその両方のスキャンコードを調べ、記載しました。
この時、それぞれのキー配列でスキャンコードの対応が異なるものを太字表示にしました。

なお、AutoHotkeyで指定するキー名は「vkXXscYYY」となっていますが、XXは仮想キーコード16進、YYYはスキャンコード(0YY→0x00YY、1YY→0xE0YY)を表しています。
また、設定したスキャンコードと検出されるスキャンコードが異なる場合は、vkXXscYYY→scZZZという形で記載しています。

日本語キーボード(JIS配列) スキャンコード一覧

仮想キー/
ScanCode
仮想キー名
(Keymill)
キー名
(AutoHotkey)
備考
vkFFsc000 - notfound
vkFFsc100 - notfound
vk1Bsc001 VK_ESCAPE Escape
vkFFsc101 - notfound
vk31sc002 VK_1 1
vkFFsc102 - notfound
vk32sc003 VK_2 2
vkFFsc103 - notfound
vk33sc004 VK_3 3
vkFFsc104 - notfound
vk34sc005 VK_4 4
vkFFsc105 - notfound
vk35sc006 VK_5 5
vkFFsc106 - notfound
vk36sc007 VK_6 6
vkFFsc107 - notfound
vk37sc008 VK_7 7
vkFFsc108 - notfound
vk38sc009 VK_8 8
vkFFsc109 - notfound
vk39sc00A VK_9 9
vkFFsc10A - notfound
vk30sc00B VK_0 0
vkFFsc10B - notfound
vkBDsc00C VK_OEM_MINUS -
vkFFsc10C - notfound
vkDEsc00D VK_OEM_7 ^
vkFFsc10D - notfound
vk08sc00E VK_BACK Backspace
vkFFsc10E - notfound
vk09sc00F VK_TAB Tab
vkFFsc10F - notfound
vk51sc010 VK_Q q
vkB1sc110 VK_MEDIA_PREV_TRACK Media_Prev
vk57sc011 VK_W w
vkFFsc111 - notfound
vk45sc012 VK_E e
vkFFsc112 - notfound
vk52sc013 VK_R r
vkFFsc113 - notfound
vk54sc014 VK_T t
vkFFsc114 - notfound
vk59sc015 VK_Y y
vkFFsc115 - notfound
vk55sc016 VK_U u
vkFFsc116 - notfound
vk49sc017 VK_I i
vkFFsc117 - notfound
vk4Fsc018 VK_O o
vkFFsc118 - notfound
vk50sc019 VK_P p
vkB0sc119 VK_MEDIA_NEXT_TRACK Media_Next
vkC0sc01A VK_OEM_3 @
vkFFsc11A - notfound
vkDBsc01B VK_OEM_4 [
vkFFsc11B - notfound
vk0Dsc01C VK_RETURN Enter
vk0Dsc11C VK_RETURN NumpadEnter
vkA2sc01D VK_LCONTROL LControl
vkA3sc11D VK_RCONTROL RControl
vk41sc01E VK_A a
vkFFsc11E - notfound
vk53sc01F VK_S s
vkFFsc11F - notfound
vk44sc020 VK_D d
vkADsc120 VK_VOLUME_MUTE Volume_Mute
vk46sc021 VK_F f
vkB7sc121 VK_LAUNCH_APP2 Launch_App2
vk47sc022 VK_G g
vkB3sc122 VK_MEDIA_PLAY_PAUSE Media_Play_Pause
vk48sc023 VK_H h
vkFFsc123 - notfound
vk4Asc024 VK_J j
vkB2sc124 VK_MEDIA_STOP Media_Stop
vk4Bsc025 VK_K k
vkFFsc125 - notfound
vk4Csc026 VK_L l
vkFFsc126 - notfound
vkBBsc027 VK_OEM_PLUS ;
vkFFsc127 - notfound
vkBAsc028 VK_OEM_1 :
vkFFsc128 - notfound
vkF3sc029 VK_OEM_AUTO notfound (半角) トグル
vkF4sc029 VK_OEM_ENLW notfound (全角) トグル
vk19sc029 VK_KANJI notfound Alt+sc029
vkF8sc029 VK_EXSEL notfound Ctrl+Alt+sc029
vkFFsc129 - notfound
vkA0sc02A VK_LSHIFT LShift
vk??sc12A
→sc???
計測不可
vkDDsc02B VK_OEM_6 ]
vkFFsc12B - notfound
vk5Asc02C VK_Z z
vkFFsc12C - notfound
vk58sc02D VK_X x
vkFFsc12D - notfound
vk43sc02E VK_C c
vkAEsc12E VK_VOLUME_DOWN Volume_Down
vk56sc02F VK_V v
vkFFsc12F - notfound
vk42sc030 VK_B b
vkAFsc130 VK_VOLUME_UP Volume_Up
vk4Esc031 VK_N n
vkFFsc131 - notfound
vk4Dsc032 VK_M m
vkACsc132 VK_BROWSER_HOME Browser_Home
vkBCsc033 VK_OEM_COMMA ,
vkFFsc133 - notfound
vkBEsc034 VK_OEM_PERIOD .
vkFFsc134 - notfound
vkBFsc035 VK_OEM_2 /
vk6Fsc135 VK_DIVIDE NumpadDiv
vkA1sc036
→sc136
VK_RSHIFT RShift
vkA1sc136 VK_RSHIFT RShift
vk6Asc037 VK_MULTIPLY NumpadMult
vk2Csc137 VK_SNAPSHOT PrintScreen
vkA4sc038 VK_LMENU LAlt
vkA5sc138 VK_RMENU RAlt
vk20sc039 VK_SPACE Space
vkFFsc139 - notfound
vkF0sc03A VK_OEM_ATTN notfound (英数) KeyDownのみ
vkF2sc03A VK_OEM_COPY notfound KeyUpのみ
vk14sc03A VK_CAPITAL CapsLock Shift+sc03A
vkFAsc03A VK_PLAY notfound Ctrl+Alt+sc03A、トグル
vkFBsc03A VK_ZOOM notfound Ctrl+Alt+sc03A、トグル
vkFFsc13A - notfound
vk70sc03B VK_F1 F1
vkFFsc13B - notfound
vk71sc03C VK_F2 F2
vkFFsc13C - notfound
vk72sc03D VK_F3 F3
vkFFsc13D - notfound
vk73sc03E VK_F4 F4
vkFFsc13E - notfound
vk74sc03F VK_F5 F5
vkFFsc13F - notfound
vk75sc040 VK_F6 F6
vkFFsc140 - notfound
vk76sc041 VK_F7 F7
vkFFsc141 - notfound
vk77sc042 VK_F8 F8
vkFFsc142 - notfound
vk78sc043 VK_F9 F9
vkFFsc143 - notfound
vk79sc044 VK_F10 F10
vkFFsc144 - notfound
vk13sc045 VK_PAUSE Pause
vkFFsc145 - notfound レジストリによる割当時
vk90sc145 VK_NUMLOCK Numlock
vk13sc145 VK_PAUSE Pause Ctrl+sc145
vk91sc046 VK_SCROLL ScrollLock
vk03sc046 VK_CANCEL CtrlBreak Ctrl+sc046
vk03sc146 VK_CANCEL CtrlBreak
vk03sc146 VK_CANCEL CtrlBreak Ctrl+sc045
vk24sc047 VK_HOME NumpadHome NumLockオフ
vk67sc047 VK_NUMPAD7 Numpad7 NumLockオン
vk24sc147 VK_HOME Home
vk26sc048 VK_UP NumpadUp NumLockオフ
vk68sc048 VK_NUMPAD8 Numpad8 NumLockオン
vk26sc148 VK_UP Up
vk21sc049 VK_PRIOR NumpadPgUp NumLockオフ
vk69sc049 VK_NUMPAD9 Numpad9 NumLockオン
vk21sc149 VK_PRIOR PgUp
vk6Dsc04A VK_SUBSTRACT NumpadSub
vkFFsc14A - notfound
vk25sc04B VK_LEFT NumpadLeft NumLockオフ
vk64sc04B VK_NUMPAD4 Numpad4 NumLockオン
vk25sc14B VK_LEFT Left
vk0Csc04C VK_CLEAR NumpadClear NumLockオフ
vk65sc04C VK_NUMPAD5 Numpad5 NumLockオン
vkFFsc14C - notfound
vk27sc04D VK_RIGHT NumpadRight NumLockオフ
vk66sc04D VK_NUMPAD6 Numpad6 NumLockオン
vk27sc14D VK_RIGHT Right
vk6Bsc04E VK_ADD NumpadAdd
vkFFsc14E - notfound
vk23sc04F VK_END NumpadEnd NumLockオフ
vk61sc04F VK_NUMPAD1 Numpad1 NumLockオン
vk23sc14F VK_END End
vk28sc050 VK_DOWN NumpadDown NumLockオフ
vk62sc050 VK_NUMPAD2 Numpad2 NumLockオン
vk28sc150 VK_DOWN Down
vk22sc051 VK_NEXT NumpadPgDn NumLockオフ
vk63sc051 VK_NUMPAD3 Numpad3 NumLockオン
vk22sc151 VK_NEXT PgDn
vk2Dsc052 VK_INSERT NumpadIns NumLockオフ
vk60sc052 VK_NUMPAD0 Numpad0 NumLockオン
vk2Dsc152 VK_INSERT Insert
vk2Esc053 VK_DELETE NumpadDel NumLockオフ
vk6Esc053 VK_DECIMAL NumpadDot NumLockオン
vk2Esc153 VK_DELETE Delete
vk2Csc054 VK_SNAPSHOT PrintScreen
vkFFsc154 - notfound
vkFFsc055 - notfound
vkFFsc155 - notfound
vkFFsc056 - notfound
vkFFsc156 - notfound
vk7Asc057 VK_F11 F11
vkFFsc157 - notfound
vk7Bsc058 VK_F12 F12
vkFFsc158 - notfound
vk0Csc059 VK_CLEAR NumpadClear
vkFFsc159 - notfound
vkFCsc05A VK_NONAME notfound
vkFFsc15A - notfound
vkFCsc05B VK_NONAME notfound
vk5Bsc15B VK_LWIN LWin
vkFCsc05C VK_NONAME notfound
vk5Csc15C VK_RWIN RWin
vkF9sc05D VK_EREOF notfound
vk5Dsc15D VK_APPS AppsKey
vkFFsc05E - notfound
vkFFsc15E - notfound
vkFCsc05F VK_NONAME notfound
vk5Fsc15F VK_SLEEP Sleep
vkFFsc060 - notfound
vkFFsc160 - notfound
vkFFsc061 - notfound
vkFFsc161 - notfound
vkFFsc062 - notfound
vkFFsc162 - notfound
vkFFsc063 - notfound
vkFFsc163 - notfound
vk7Csc064 VK_F13 F13
vkFFsc164 - notfound
vk7Dsc065 VK_F14 F14
vkAAsc165 VK_BROWSER_SEARCH Browser_Search
vk7Esc066 VK_F15 F15
vkABsc166 VK_BROWSER_FAVORITES Browser_Favorites
vk7Fsc067 VK_F16 F16
vkA8sc167 VK_BROWSER_REFRESH Browser_Refresh
vk80sc068 VK_F17 F17
vkA9sc168 VK_BROWSER_STOP Browser_Stop
vk81sc069 VK_F18 F18
vkA7sc169 VK_BROWSER_FORWARD Browser_Forward
vk82sc06A VK_F19 F19
vkA6sc16A VK_BROWSER_BACK Browser_Back
vk83sc06B VK_F20 F20
vkB6sc16B VK_LAUNCH_APP1 Launch_App1
vk84sc06C VK_F21 F21
vkB4sc16C VK_LAUNCH_MAIL Launch_Mail
vk85sc06D VK_F22 F22
vkB5sc16D VK_LAUNCH_MEDIA_SELECT Launch_Media
vk86sc06E VK_F23 F23
vkFFsc16E - notfound
vkFFsc06F - notfound
vkFFsc16F - notfound
vkF2sc070 VK_OEM_COPY notfound (カタカナひらがな) KeyDownのみ
vkF0sc070 VK_OEM_ATTN notfound KeyUpのみ
vkF1sc070 VK_OEM_FINISH notfound Shift+sc070
vkF5sc070 VK_OEM_BACKTAB notfound Alt+sc070、トグル
vkF6sc070 VK_ATTN notfound Alt+sc070、トグル
vkFFsc170 - notfound
vk1Asc071
→sc1F1
(Undefined) notfound
vk1Asc171
→sc1F1
(Undefined) notfound
vkFFsc0F1
→sc071
- notfound
vkFFsc1F1
→sc171
- notfound
vk16sc072
→sc1F2
(Undefined) notfound
vk16sc172
→sc1F2
(Undefined) notfound
vkFFsc0F2
→sc072
- notfound
vkFFsc1F2
→sc172
- notfound
vkE2sc073 VK_OEM_102 \(\)
vkFFsc173 - notfound
vkFFsc074 - notfound
vkFFsc174 - notfound
vkFFsc075 - notfound
vkFFsc175 - notfound
vk87sc076 VK_F24 F24
vkFFsc176 - notfound
vkFFsc077 - notfound
vkFFsc177 - notfound
vkFFsc078 - notfound
vkFFsc178 - notfound
vk1Csc079 VK_CONVERT notfound
vkFFsc179 - notfound
vkFFsc07A - notfound
vkFFsc17A - notfound
vk1Dsc07B VK_NONCONVERT notfound
vkFFsc17B - notfound
vk09sc07C VK_TAB Tab
vkFFsc17C - notfound
vkDCsc07D VK_OEM_5 \(¥)
vkFFsc17D - notfound
vkC2sc07E (Reserved) notfound
vkFFsc17E - notfound
vkECsc07F VK_OEM_PA2 notfound
vkFFsc17F - notfound

英語キーボード(US配列) スキャンコード一覧

仮想キー/
ScanCode
仮想キー名
(Keymill)
キー名
(AutoHotkey)
備考
vkFFsc000 - notfound
vkFFsc100 - notfound
vk1Bsc001 VK_ESCAPE Escape
vkFFsc101 - notfound
vk31sc002 VK_1 1
vkFFsc102 - notfound
vk32sc003 VK_2 2
vkFFsc103 - notfound
vk33sc004 VK_3 3
vkFFsc104 - notfound
vk34sc005 VK_4 4
vkFFsc105 - notfound
vk35sc006 VK_5 5
vkFFsc106 - notfound
vk36sc007 VK_6 6
vkFFsc107 - notfound
vk37sc008 VK_7 7
vkFFsc108 - notfound
vk38sc009 VK_8 8
vkFFsc109 - notfound
vk39sc00A VK_9 9
vkFFsc10A - notfound
vk30sc00B VK_0 0
vkFFsc10B - notfound
vkBDsc00C VK_OEM_MINUS -
vkFFsc10C - notfound
vkBBsc00D VK_OEM_PLUS =
vkFFsc10D - notfound
vk08sc00E VK_BACK Backspace
vkFFsc10E - notfound
vk09sc00F VK_TAB Tab
vkFFsc10F - notfound
vk51sc010 VK_Q q
vkB1sc110 VK_MEDIA_PREV_TRACK Media_Prev
vk57sc011 VK_W w
vkFFsc111 - notfound
vk45sc012 VK_E e
vkFFsc112 - notfound
vk52sc013 VK_R r
vkFFsc113 - notfound
vk54sc014 VK_T t
vkFFsc114 - notfound
vk59sc015 VK_Y y
vkFFsc115 - notfound
vk55sc016 VK_U u
vkFFsc116 - notfound
vk49sc017 VK_I i
vkFFsc117 - notfound
vk4Fsc018 VK_O o
vkFFsc118 - notfound
vk50sc019 VK_P p
vkB0sc119 VK_MEDIA_NEXT_TRACK Media_Next
vkDBsc01A VK_OEM_4 [
vkFFsc11A - notfound
vkDDsc01B VK_OEM_6 ]
vkFFsc11B - notfound
vk0Dsc01C VK_RETURN Enter
vk0Dsc11C VK_RETURN NumpadEnter
vkA2sc01D VK_LCONTROL LControl
vkA3sc11D VK_RCONTROL RControl
vk41sc01E VK_A a
vkFFsc11E - notfound
vk53sc01F VK_S s
vkFFsc11F - notfound
vk44sc020 VK_D d
vkADsc120 VK_VOLUME_MUTE Volume_Mute
vk46sc021 VK_F f
vkB7sc121 VK_LAUNCH_APP2 Launch_App2
vk47sc022 VK_G g
vkB3sc122 VK_MEDIA_PLAY_PAUSE Media_Play_Pause
vk48sc023 VK_H h
vkFFsc123 - notfound
vk4Asc024 VK_J j
vkB2sc124 VK_MEDIA_STOP Media_Stop
vk4Bsc025 VK_K k
vkFFsc125 - notfound
vk4Csc026 VK_L l
vkFFsc126 - notfound
vkBAsc027 VK_OEM_1 ;
vkFFsc127 - notfound
vkDEsc028 VK_OEM_7 '
vkFFsc128 - notfound
vkC0sc029 VK_OEM_3 `
vk19sc029 VK_KANJI notfound Alt+sc029
vkFFsc129 - notfound
vkA0sc02A VK_LSHIFT LShift
vk??sc12A
→sc???
計測不可
vkDCsc02B VK_OEM_5 \
vkFFsc12B - notfound
vk5Asc02C VK_Z z
vkFFsc12C - notfound
vk58sc02D VK_X x
vkFFsc12D - notfound
vk43sc02E VK_C c
vkAEsc12E VK_VOLUME_DOWN Volume_Down
vk56sc02F VK_V v
vkFFsc12F - notfound
vk42sc030 VK_B b
vkAFsc130 VK_VOLUME_UP Volume_Up
vk4Esc031 VK_N n
vkFFsc131 - notfound
vk4Dsc032 VK_M m
vkACsc132 VK_BROWSER_HOME Browser_Home
vkBCsc033 VK_OEM_COMMA ,
vkFFsc133 - notfound
vkBEsc034 VK_OEM_PERIOD .
vkFFsc134 - notfound
vkBFsc035 VK_OEM_2 /
vk6Fsc135 VK_DIVIDE NumpadDiv
vkA1sc036
→sc136
VK_RSHIFT RShift
vkA1sc136 VK_RSHIFT RShift
vk6Asc037 VK_MULTIPLY NumpadMult
vk2Csc137 VK_SNAPSHOT PrintScreen
vkA4sc038 VK_LMENU LAlt
vkA5sc138 VK_RMENU RAlt
vk20sc039 VK_SPACE Space
vkFFsc139 - notfound
vk14sc03A VK_CAPITAL CapsLock
vkF0sc03A VK_OEM_ATTN notfound Shift+sc03A、KeyDownのみ
vkF1sc03A VK_OEM_FINISH notfound Shift+sc03A、KeyUpのみ
vkF1sc03A VK_OEM_FINISH notfound Alt+sc03A、KeyDownのみ
vkF0sc03A VK_OEM_ATTN notfound Alt+sc03A、KeyUpのみ
vkFFsc13A - notfound
vk70sc03B VK_F1 F1
vkFFsc13B - notfound
vk71sc03C VK_F2 F2
vkFFsc13C - notfound
vk72sc03D VK_F3 F3
vkFFsc13D - notfound
vk73sc03E VK_F4 F4
vkFFsc13E - notfound
vk74sc03F VK_F5 F5
vkFFsc13F - notfound
vk75sc040 VK_F6 F6
vkFFsc140 - notfound
vk76sc041 VK_F7 F7
vkFFsc141 - notfound
vk77sc042 VK_F8 F8
vkFFsc142 - notfound
vk78sc043 VK_F9 F9
vkFFsc143 - notfound
vk79sc044 VK_F10 F10
vkFFsc144 - notfound
vk13sc045 VK_PAUSE Pause
vkFFsc145 - notfound レジストリによる割当時
vk90sc145 VK_NUMLOCK Numlock
vk13sc145 VK_PAUSE Pause Ctrl+sc145
vk91sc046 VK_SCROLL ScrollLock
vk03sc046 VK_CANCEL CtrlBreak Ctrl+sc046
vk03sc146 VK_CANCEL CtrlBreak
vk03sc146 VK_CANCEL CtrlBreak Ctrl+sc045
vk24sc047 VK_HOME NumpadHome NumLockオフ
vk67sc047 VK_NUMPAD7 Numpad7 NumLockオン
vk24sc147 VK_HOME Home
vk26sc048 VK_UP NumpadUp NumLockオフ
vk68sc048 VK_NUMPAD8 Numpad8 NumLockオン
vk26sc148 VK_UP Up
vk21sc049 VK_PRIOR NumpadPgUp NumLockオフ
vk69sc049 VK_NUMPAD9 Numpad9 NumLockオン
vk21sc149 VK_PRIOR PgUp
vk6Dsc04A VK_SUBSTRACT NumpadSub
vkFFsc14A - notfound
vk25sc04B VK_LEFT NumpadLeft NumLockオフ
vk64sc04B VK_NUMPAD4 Numpad4 NumLockオン
vk25sc14B VK_LEFT Left
vk0Csc04C VK_CLEAR NumpadClear NumLockオフ
vk65sc04C VK_NUMPAD5 Numpad5 NumLockオン
vkFFsc14C - notfound
vk27sc04D VK_RIGHT NumpadRight NumLockオフ
vk66sc04D VK_NUMPAD6 Numpad6 NumLockオン
vk27sc14D VK_RIGHT Right
vk6Bsc04E VK_ADD NumpadAdd
vkFFsc14E - notfound
vk23sc04F VK_END NumpadEnd NumLockオフ
vk61sc04F VK_NUMPAD1 Numpad1 NumLockオン
vk23sc14F VK_END End
vk28sc050 VK_DOWN NumpadDown NumLockオフ
vk62sc050 VK_NUMPAD2 Numpad2 NumLockオン
vk28sc150 VK_DOWN Down
vk22sc051 VK_NEXT NumpadPgDn NumLockオフ
vk63sc051 VK_NUMPAD3 Numpad3 NumLockオン
vk22sc151 VK_NEXT PgDn
vk2Dsc052 VK_INSERT NumpadIns NumLockオフ
vk60sc052 VK_NUMPAD0 Numpad0 NumLockオン
vk2Dsc152 VK_INSERT Insert
vk2Esc053 VK_DELETE NumpadDel NumLockオフ
vk6Esc053 VK_DECIMAL NumpadDot NumLockオン
vk2Esc153 VK_DELETE Delete
vk2Csc054 VK_SNAPSHOT PrintScreen
vkFFsc154 - notfound
vkFFsc055 - notfound
vkFFsc155 - notfound
vkE2sc056 VK_OEM_102 \
vkFFsc156 - notfound
vk7Asc057 VK_F11 F11
vkFFsc157 - notfound
vk7Bsc058 VK_F12 F12
vkFFsc158 - notfound
vk0Csc059 VK_CLEAR NumpadClear
vkFFsc159 - notfound
vkEEsc05A VK_OEM_WSCTRL notfound
vkFFsc15A - notfound
vkF1sc05B VK_OEM_FINISH notfound
vk5Bsc15B VK_LWIN LWin
vkEAsc05C VK_OEM_JUMP notfound
vk5Csc15C VK_RWIN RWin
vkF9sc05D VK_EREOF notfound
vk5Dsc15D VK_APPS AppsKey
vkF5sc05E VK_OEM_AUTO notfound
vkFFsc15E - notfound
vkF3sc05F VK_OEM_BACKTAB notfound
vk5Fsc15F VK_SLEEP Sleep
vkFFsc060 - notfound
vkFFsc160 - notfound
vkFFsc061 - notfound
vkFFsc161 - notfound
vkFBsc062 VK_ZOOM notfound
vkFFsc162 - notfound
vk2Fsc063 VK_HELP Help
vkFFsc163 - notfound
vk7Csc064 VK_F13 F13
vkFFsc164 - notfound
vk7Dsc065 VK_F14 F14
vkAAsc165 VK_BROWSER_SEARCH Browser_Search
vk7Esc066 VK_F15 F15
vkABsc166 VK_BROWSER_FAVORITES Browser_Favorites
vk7Fsc067 VK_F16 F16
vkA8sc167 VK_BROWSER_REFRESH Browser_Refresh
vk80sc068 VK_F17 F17
vkA9sc168 VK_BROWSER_STOP Browser_Stop
vk81sc069 VK_F18 F18
vkA7sc169 VK_BROWSER_FORWARD Browser_Forward
vk82sc06A VK_F19 F19
vkA6sc16A VK_BROWSER_BACK Browser_Back
vk83sc06B VK_F20 F20
vkB6sc16B VK_LAUNCH_APP1 Launch_App1
vk84sc06C VK_F21 F21
vkB4sc16C VK_LAUNCH_MAIL Launch_Mail
vk85sc06D VK_F22 F22
vkB5sc16D VK_LAUNCH_MEDIA_SELECT Launch_Media
vk86sc06E VK_F23 F23
vkFFsc16E - notfound
vkEDsc06F VK_OEM_PA3 notfound
vkFFsc16F - notfound
vkFFsc070 - notfound
vkFFsc170 - notfound
vk1Asc071
→sc1F1
(Undefined) notfound
vk1Asc171
→sc1F1
(Undefined) notfound
vkE9sc0F1
→sc071
VK_OEM_RESET notfound
vkFFsc1F1
→sc171
- notfound
vk16sc072
→sc1F2
(Undefined) notfound
vk16sc172
→sc1F2
(Undefined) notfound
vkFFsc0F2
→sc072
- notfound
vkFFsc1F2
→sc172
- notfound
vkC1sc073 (Reserved) notfound
vkFFsc173 - notfound
vkFFsc074 - notfound
vkFFsc174 - notfound
vkFFsc075 - notfound
vkFFsc175 - notfound
vk87sc076 VK_F24 F24
vkFFsc176 - notfound
vkFFsc077 - notfound
vkFFsc177 - notfound
vkFFsc078 - notfound
vkFFsc178 - notfound
vkFFsc079 - notfound
vkFFsc179 - notfound
vkFFsc07A - notfound
vkFFsc17A - notfound
vkEBsc07B VK_OEM_PA1 notfound
vkFFsc17B - notfound
vk09sc07C VK_TAB Tab
vkFFsc17C - notfound
vkFFsc07D - notfound
vkFFsc17D - notfound
vkC2sc07E (Reserved) notfound
vkFFsc17E - notfound
vkECsc07F VK_OEM_PA2 notfound
vkFFsc17F - notfound

調査結果

  • キーコードの送信がトグル形式となっているキーはUS配列にはない
  • 変換キー・無変換キー・カタカナひらがなキーといったJIS配列特有のキーは、US配列においてはスキャンコードを割り当てても仮想キーコードのマッピングが異なるため、AutoHotkeyなどでリマップする必要がある
  • NumLockキーはレジストリで割り当て変更すると仮想キーコードがマッピングされないため、同様にAutoHotkeyなどでリマップする必要がある
  • おそらくフルキーボードのPrtScはsc054に、コンパクトキーボードのPrtScはsc137に割り当てられている模様
  • JISとUSの両方に存在する、効果を持たないキーとしては、ファンクションキー以外ではEREOF(sc05D)とPA2(sc07F)が主に使える
  • sc071, sc072付近のリマップがややこしい
  1. ちなみにWindowsのレジストリで扱うスキャンコードはセット1です。(参考: http://overslept-dev.hatenablog.com/entry/2017/06/26/144854)

  2. 結論から言うとできません。この場合はAutoHotkeyなどで割り当ててください。

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?