@Peter
Sorry, didn't realize it was made by maximdw
@maximdw
After more digging I've realized that all that is needed for ConEmu to be embeded is a spare window area with a unique
HWND (this is a hex window code of a window object, which can be a panel, status bar, command line etc.)
Since I didn't manage to find and existing one for the panel (I was only able to hijack the top/bottom parts, but failed to find a HWND for the middle window, it seems that the only option is for your addon to help out.
Your addon already spawns a window with HWND for its own console. Is there any chance you could make a version that would just spawn a new window and then call
ConEmu command, passing the HWND id to it?
Then ConEmu would deal with the rest (it already has a function to work as a child GUI process) and nothing would be required from your addon.
The command would be
Code: Select all
ConEmu64.exe /insidewnd 0xHWND /config "inside" /single /cmd {powershell}
0xHWND is window id, e.g. 0x001106B6
{powershell} is the name of the profile that ConEmu should launch (it's better to use a profile vs. calling powershell directly so that user can have additional settings passed/environment setup when starting a console)
For some more details with screenshots of the existing limitations
https://github.com/Maximus5/ConEmu/issues/122 or in a separate thread here
http://ghisler.ch/board/viewtopic.php?t=43673&highlight= (though it also references GitHub description with screenshots)
Alternatively, maybe you can answer the following: is there an
HWND (this is a hex window code of a window object, which can be a panel, status bar, command line etc.) of the middle of the panel that shows folder/files (I couldn't find any in Spy++)?
P.S.
Here is the screenshot of when I tried to embed in an HWND found for the folder/file panel I've found via Spy++
Note that the middle panel is left untouched and only top/bottom contain the ConEmu terminal
Image:
https://cloud.githubusercontent.com/assets/12956286/13589898/906a5074-e4ec-11e5-97c4-4162bfdffb3e.PNG