AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1464496
Accepted
Juan Ojeda
Juan Ojeda
Asked: 2019-07-27 11:17:27 +0800 CST2019-07-27 11:17:27 +0800 CST 2019-07-27 11:17:27 +0800 CST

windows + 带数字键盘的数字

  • 772

我正在寻找如何使用 Win + 数字快捷方式来使用数字键盘而不是 qwerty 键打开程序。使用 Windows 10 我真的习惯了将我的高跑者应用程序固定到任务栏并使用“win + #”快捷方式打开它们但是由于某种原因我不能将它与有线键盘的数字小键盘数字一起使用(数字锁定与否)。不确定这是来自 Windows 的编程行为还是实际的键盘设置。我更喜欢使用键盘而不是 qwerty 数字只是因为手的位置。有什么想法很适合启用或解决方法吗?

windows-10 keyboard-shortcuts
  • 1 1 个回答
  • 332 Views

1 个回答

  • Voted
  1. Best Answer
    Keith Miller
    2019-08-03T07:26:15+08:002019-08-03T07:26:15+08:00

    这应该适用于即插即用或内置键盘。将此代码复制并粘贴到Administrator PowerShell 窗口中(Winkey+X > Windows PowerShell (Admin))。该脚本的设计使得可以轻松添加或减去重映射对。但是正如发布的那样,它重新映射受 Numlock (0-9, ./Del) 影响的键以生成相应 QWERTY 键的扫描码。


    编辑#2:重写代码——结果相同,只是代码更紧凑。

    ###   *** This code must be run from an elevated (Admin) PowerShell session *** ###
    
    ###   If both source and target are not extended scan codes, 
    ###   add them here and the extended bytes will be added by code.
    
    [Byte[]]$SimplePairs = @(
        0x02, 0x4f   #   [1 !] => [1 end]
        0x03, 0x50   #   [2 @] => [2 ↓]
        0x04, 0x51   #   [3 #] => [3 pg-dn]
        0x05, 0x4b   #   [4 $] => [4 ←]
        0x06, 0x4c   #   [5 %] => [5]
        0x07, 0x4d   #   [6 ^] => [6 →]
        0x08, 0x47   #   [7 &] => [7 home]
        0x09, 0x48   #   [8 *] => [8 ↑]
        0x0a, 0x49   #   [9 (] => [9 pg-up]
        0x0b, 0x52   #   [0 )] => [0 Ins]
        0x34, 0x53   #   [. >] => [. Del]
    #   0x00, 0x3a   #   [Null] => [CapsLock]
    ).ForEach({ $_ , 0 })      ### Add zero-valued extended byte to each scancode
    
    ###   If either one or both are extended scan codes,
    ###   add them here with the extended byte value as well.
    
    [Byte[]]$ExtendedPairs = @(
    #   0x5d, 0xe0, 0x1d, 0xe0 # [ContextMenu] > [R-Ctrl]
    )
    
    [Byte[]]$AllPairs = $SimplePairs + $ExtendedPairs
    
    [byte[]]$Remap    = [byte[]]::new(8) +  
                        [BitConverter]::GetBytes( $AllPairs.Length/4 + 1 ) +
                        $AllPairs +
                        [byte[]]::new(4)
    
    $Splat = @{
        'Path'  = 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout'
        'Name'  = 'ScanCode Map'
        'Value' = $Remap
        'Force' = $True
    }
    [Void]New-ItemProperty @Splat
    
    echo @'
    
    
       ***   Done. Computer must be restarted   ***
       ***   before changes will take effect.   ***
    
    '@
    

    粘贴后,按执行并重新启动计算机。


    编辑:撤消:

    使用,从注册表项RegEdit中删除ScanCode Map条目(类型:):REG_BINARY

    • HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout

    或者从管理员 PowerShell控制台运行此命令:

    • Remove-ItemProperty 'HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout' 'ScanCode Map'

    额外提示:如果您需要暂时禁用重新映射或尝试使用不同的重新映射,请将注册表项重命名为除此之外的名称ScamCode Map并重新启动。带有 mames 的值ScamCode Map将被忽略:

    在此处输入图像描述

    • 1

相关问题

  • 在 Sublime 文本编辑器中跳转到 ES6 箭头函数

  • 如何在CentOS 7 中将Ctrl+C 永久更改为Ctrl+K?

  • 资源管理器侧面板中的桌面外壳快捷方式

  • 为什么我不能将文件从 Android 发送到 Windows 10?

  • 在多个文件上打开方式?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve