gpt4 book ai didi

macros - AutoHotKey:#IfWinActive .* 资源管理器 *. ?在 Windows 7

转载 作者:行者123 更新时间:2023-12-03 15:10:10 27 4
gpt4 key购买 nike

我正在尝试制作一个仅在 Windows 资源管理器中有效的 AutoHotKey 宏,但我不知道 Windows 7 中资源管理器的名称。我尝试了以下操作:

;Make explorer understand that Ctrl+L means goto location bar (like Firefox / Chrome)
#IfWinActive .* Explorer *.
^l::Send {F4}
#IfWinActive

有任何想法吗?

最佳答案

Autohotkey 带有一个名为 Window Spy 的程序。您可以使用它来发现事件窗口的标题。

另外,请注意 ahk_class(在帮助文件中查找 ahk_class),它使用窗口类型而不是标题。
例如,在我的 Win 7 案例中,我可以通过指定将热键限制为资源管理器:

#IfWinActive ahk_class CabinetWClass

关于macros - AutoHotKey:#IfWinActive .* 资源管理器 *. ?在 Windows 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4401375/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com