Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.55k stars 571 forks source link

ConEmu Inside Shortcut #2340

Open deepaksp opened 3 years ago

deepaksp commented 3 years ago

Hi Guys,

i don't know if its posted already here or not.

I have created a shortcut to run conemu inside explorer shortcut with auto hot key.

any improvement on code will be helpful.

my shortcut key is ctrl + shit + i, you can change yours

` ^+i::

WinGet, WinID, ID, ahk_class CabinetWClass WinGet, WinPID, PID, ahk_class CabinetWClass CurrentPath := ExplorerPath(WinID) Run, "ConEmu.exe PATH" -inside -config "shell" -insidepid %WinPID% -dir %CurrentPath% -run {powershell} -cur_console:n return

ExplorerPath(_hwnd) { for w in ComObjCreate("Shell.Application").Windows if (w.hwnd = _hwnd) { path := StrReplace(w.LocationURL, "file:///") return StrReplace(path, "%20", " ") } }

`