I'm using Windows key + F1 to open a folder and Windows key + F2:
Code: Select all
; open path in explorer
#F1::
SendInput, ^c ; copy current selection to clipboard
ClipWait, 30
Run, explore %clipboard%
return
; open file path in explorer
#F2::
SendInput, ^c ; copy current selection to clipboard
ClipWait, 30
Run, open %clipboard%
return
Sometimes it works but most times I get this error: I can't figure out what makes it work or not.