#E:: ; Windows + E Key to activate IfWinActive, ahk_class CabinetWClass ; If Windows Explorer is active, then grab filepath from it { for oWin in ComObjCreate("Shell.Application").Windows { Folderpath := oWin.Document.Folder.Self.Path ; Save path of current folder as variable } run, %Folderpath% ; Run the saved path to open with the default explorer (XyPlorer) return }