2017-01-02 82 views
0

我要重新映射按CtrlAlt鍵 + d這樣我就可以凸顯的時候我的文件路徑在資源管理器中。但是,我所有的嘗試都失敗了。重映射 「CTRL + L」 至 「ALT + d」 在AutoHotkey(W7專業版SP1)

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. 

但我已經使用了在其他腳本中的表達和測試它。

哪種方法可以實現這一目標?

+0

偏離主題;屬於[蘇] –

+0

[但是...] –

+0

Idk,也許你需要提供更多的信息。對我來說,'Ctrl + L'和'Alt + D'帶我到資源管理器中的文件路徑。但是,我在Win 8.1上。我知道Windows已經更改了資源管理器窗口類 - 但僅限於某些文件夾/案例(我還沒有完整模式),所以有些窗口在某些窗口中的工作方式與其他窗口不同。請參閱https://blogs.msdn.microsoft.com/oldnewthing/20150619-00/?p=45341 – PGilm

回答

1

這個AutoHotkey腳本應該做你需要的。
在Windows 7上測試。

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

像魅力一樣工作。非常感謝。 –