Open deepaksp opened 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", " ") } }
`
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", " ") } }
`