Maximus5 / conemu-inside

An example, how to embed http://conemu.github.io/ into another graphical application
57 stars 46 forks source link

Add a way to pass a key to a parent GUI control #43

Open stevium opened 6 years ago

stevium commented 6 years ago

Is there any way to switch the focus from ConEmu to a hosting application without using the mouse?

I am experimenting with this Visual Studio extension: https://github.com/Therena/ConEmuIntegration, trying to intercept keys before ConEmu. I have tried using the SetWindowsHookEx native methods from user32.dll to install a custom Keyboard Procedure, but with no success. Only special hotkeys, like Alt+Tab, Alt+Esc, etc., work.

ConEmu is a remarkable project, but not being able to intercept any keys before it, and thus having to use the mouse for switching to other GUI controls, degrades the experience of using the ConEmu-inside to a great extent.

Maximus5 commented 6 years ago

For proper interaction conemu-inside should be rewritten in WPF, but I haven't enough time for that unfortunately

stevium commented 6 years ago

Thank you for the response. In the meantime I have found a workaround for Visual Studio using AutoHotkey. But anyways, exposing something like OnKey event by ConEmu API would be of great use for embedding it.