【问题标题】:Trying to remap Win + [Shift] + Arrows using Autohotkey in Windows尝试在 Windows 中使用 Autohotkey 重新映射 Win + [Shift] + 箭头
【发布时间】:2017-05-18 19:54:46
【问题描述】:

我正在尝试在 Autohotkey 中编写一个脚本来完成以下任务:

Win + Left,Win + Shift + Left = Home Win + Right,Win + Shift + Right = End 等等

它适用于简单版本(Win + Arrow),但在将 Shift 添加到组合时不起作用。当按下 Shift 与 Win 和 - 比方说 - 左箭头时,它会将窗口移动到另一个桌面(默认 Windows 10 行为)。任何人都可以帮助解决这个问题吗?这是我的脚本:

#Left::
If GetKeyState("Shift","P")
  Send {Home}
else
  Send {Home}
Send {Home}
Return

#Right::
If GetKeyState("Shift","P")
  Send {End}
else
  Send {End}
Return

#Up::
If GetKeyState("Shift","P")
  Send {PgUp}
else
  Send {PgUp}
Return

#Down::
If GetKeyState("Shift","p")
  Send {PgDn}
else
  Send {PgDn}
Return

【问题讨论】:

    标签: windows autohotkey


    【解决方案1】:

    在 Windows 10 上,我已经尝试过这个并且工作正常。

    #+Left::
    Send {Home}
    Return
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-14
      • 1970-01-01
      • 1970-01-01
      • 2018-10-31
      • 2019-04-03
      • 2013-10-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多