0
votes

I want to remap Ctrl + l to Alt + d so I can highlight the filepath when I'm in Explorer. However, all my attempts have been unsuccessful.

LCtrl & l::LAlt & d

Returns:

^l::
    !d
return

Doesn't work.

^l::!d

Doesn't work either.

LCtrl & l::LAlt & d

Returns:

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

The program will exit.  

But I have used that expression in other scripts and tested it.

Which is the right way to achieve this?

1
Off-topic; belongs on Super UserJim Garrison
Idk, maybe you need to provide more info. For me, both Ctrl+L and Alt+D take me to the file path in Explorer. But, I am on Win 8.1. I do know that Windows has changed the Explorer window class -- but only for some folders/cases (I haven't got the full pattern, yet), so some things work differently in some windows than others. See blogs.msdn.microsoft.com/oldnewthing/20150619-00/?p=45341PGilm

1 Answers

2
votes

This AutoHotkey script should do what you require.
Tested on Windows 7.

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