【问题标题】:Define shortcut key for shortcut in PowerShell为 PowerShell 中的快捷方式定义快捷键
【发布时间】:2015-08-20 19:25:12
【问题描述】:

我想创建创建快捷方式的 PowerShell 脚本,但我找不到为创建的快捷方式定义 快捷键: 的函数。我的意思是,当打开快捷键的属性时,会有一个快捷键的输入字段,是否有任何函数可以在PowerShell中定义它?

【问题讨论】:

    标签: powershell keyboard-shortcuts desktop-shortcut


    【解决方案1】:

    我刚刚找到了解决方案:

    https://blogs.technet.microsoft.com/heyscriptingguy/2008/11/03/hey-scripting-guy-how-can-i-add-a-windows-powershell-shortcut-to-the-quick-launch-toolbar/

    函数是HotKey。像这样的东西:$shortcut.HotKey = "CTRL+1"

    【讨论】:

      猜你喜欢
      • 2014-05-12
      • 1970-01-01
      • 1970-01-01
      • 2019-07-23
      • 1970-01-01
      • 1970-01-01
      • 2019-04-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多