keybd_event and loosed focus
About virtual keyboard:
I'v got it to work 99% with keybd_event but always when I touch some of the virtual keyboard keys, virtual keyboard gets focus. Usually this is not a problem because I can set the focus back to the "target" window with SetForegroundWindow but f.ex. with Internet Explorer and address combobox it's a problem. When it gets back it focus, address (the first letter I managed to send there with virtual keyboard) gets ALWAYS overwritten. Same features also happens with menus, For example saving document in word is done by pressing ALT + F (down + Up) and then S (sending S). When pressing S on virtual keyboard it gets focus back and menu is loosed and S is written to the text area. How to get around this.
TIA