0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Numlockキーの無効化

Posted at

Numlockでテンキーの使い方が変わるのが嫌なので、備忘録がてら。

batファイルの作成

バッチファイル作成して以下をメモ帳にコピペしてください。(詳しくはbat作成などで検索)

Numlockキーの設定.bat
@echo off
set /p input_key="Numlock設定(0:無効化 1:有効化)=

if "%input_key%" == "0" (
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d "0000000000000000020000007a00450000000000" /f
    echo NumLockを無効にしました。次回サインイン後に適用されます。
) else if "%input_key%" == "1" (
    reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f
    echo NumLockを有効にしました。次回サインイン後に適用されます。
) else (
    echo 操作をキャンセルしました。
)
pause

作成したbatファイルを実行

image.png

0を入力してEnter→無効化
1を入力してEnter→有効化

0を入力して無効化します。
image.png

サインアウトして、再度サインイン

反映させるには一度サインアウトしてから、再度サインインする必要があります。
スタートメニューからサインアウトしてください。

image.png

再度サインインしたら、反映されていることを確認して完了。
有効化する場合も実行時1を入力して、あとの操作は同様です。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?