C# - Sending keyboard events to (last) selected window
Posted
by Mil
on Stack Overflow
See other posts from Stack Overflow
or by Mil
Published on 2010-05-08T20:45:03Z
Indexed on
2010/05/08
20:48 UTC
Read the original article
Hit count: 276
c#
Hi guys,
I want to use virtual keyboard assembly found here http://www.codeproject.com/KB/miscctrl/touchscreenkeyboard.aspx like on screen keyboard (OSK.exe) in Windows. Can someone please tell me how can I use it so that it always stays on top and yet for user to be able to select other windows on dekstop for keyboard input, just like "on screen keyboard" in Windows, specifically I don't know how to select last selected window (can't use GetForegroundWindow or GetFocus only, because when user clicks on virtual keyboard it gets focused and I get handle of keyboard window itself)? This is very urgent to me so any advice would be greatly appreciated.
Thanks in advance.
© Stack Overflow or respective owner