【问题标题】:Ctrl+Click to Simple Click on explorer - AHKCtrl+单击以简单地单击资源管理器 - AHK
【发布时间】:2021-12-07 01:42:21
【问题描述】:

我正在尝试使用 AutoHotkey 使 Ctrl+Click 简单地单击资源管理器。

#IfWinActive ahk_exe explorer.exe
^LButton:: LButton

;

#IfWinActive ahk_exe explorer.exe    
^LButton:: Send {Ctrl Up}{LButton}

我尝试了这两个脚本,但它们都不起作用。

不过,使用 ^LButton,我可以选择多个文件。

感谢您的帮助。

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    ^LButton::LButton 不应该工作,因为内部简单的重映射语法expands to a send command with {Blind}。或者更清楚地说,被按住的修饰符保持原样。

    不过,^LButton::Send, {Ctrl Up}{LButton} 应该没问题。
    它确实可以按预期在我的系统上运行。
    {Ctrl Up} 是多余的,因为Send 命令在发送之前自动释放修饰符 (除非处于盲模式).
    也许试试这个以防万一:

    #IfWinActive, ahk_exe explorer.exe    
    ^LButton::SendInput, {LButton}
    #IfWinActive
    

    也切换到SendInput(docs),因为它是推荐的更快、更可靠的发送模式。

    【讨论】:

      猜你喜欢
      • 2018-07-27
      • 1970-01-01
      • 1970-01-01
      • 2012-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-22
      • 2015-01-26
      相关资源
      最近更新 更多