【问题标题】:Remap "Ctrl+l" to "Alt+d" with Autohotkey (W7 Pro SP1)使用 Autohotkey (W7 Pro SP1) 将“Ctrl+l”重新映射到“Alt+d”
【发布时间】:2017-01-02 16:09:24
【问题描述】:

我想将 Ctrl + l 重新映射到 Alt + d 以便在我使用时突出显示文件路径我在资源管理器中。然而,我所有的尝试都没有成功。

LCtrl & l::LAlt & d

返回:

^l::
    !d
return

不起作用。

^l::!d

也不行。

LCtrl & l::LAlt & d

返回:

Error at line 12.
Line Text: LAlt & d
Error: This line does not contain a recognized action.

The program will exit.  

但我已经在其他脚本中使用过该表达式并对其进行了测试。

实现这一目标的正确方法是什么?

【问题讨论】:

  • 离题;属于Super User
  • Idk,也许您需要提供更多信息。对我来说,Ctrl+LAlt+D 都将我带到资源管理器中的文件路径。但是,我在 Win 8.1 上。我确实知道 Windows 已经更改了 Explorer 窗口类——但仅适用于某些文件夹/案例(我还没有完整的模式),所以有些窗口在某些窗口中的工作方式与其他窗口不同。见blogs.msdn.microsoft.com/oldnewthing/20150619-00/?p=45341

标签: windows keyboard-shortcuts autohotkey


【解决方案1】:

这个 AutoHotkey 脚本应该可以满足您的要求。
在 Windows 7 上测试。

#IfWinActive, ahk_class CabinetWClass
^l::
#IfWinActive, ahk_class ExploreWClass
^l::
SendInput !d
Return
#IfWinActive

【讨论】:

  • 像魅力一样工作。非常感谢。
猜你喜欢
  • 2018-12-15
  • 1970-01-01
  • 2015-01-23
  • 2012-08-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-05-21
  • 1970-01-01
相关资源
最近更新 更多