Calculus Knight
Calculus Knight

Reputation: 113

Remap "Ctrl+l" to "Alt+d" with Autohotkey (W7 Pro SP1)

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?

Upvotes: 0

Views: 247

Answers (1)

vafylec
vafylec

Reputation: 1015

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

Upvotes: 2

Related Questions