I am developing an app for a Windows 8.1 tablet (using Java & eclipse RCP).
I would like Windows to automatically open the OSK when a text field receives focus and to close it again when the focus is lost. This works for some of the built-in windows functions such as search (swipe in from the right side of the screen and the search field appears)
I have tried to open OSK programmatically but it does not work as expected. The OSK is started but in a window which removes the focus from the input field and, therefore, the characters typed to not reach the input.
The OSK is started as follows
cmd /c c:WINDOWS/system32/osk.exe
Perhaps there is another way to start it so that the input field does not loose focus.
UPDATE
I managed to open the keyboard programmatically using
Runtime.getRuntime().exec(path + "tabtip.exe")
but only after I ran the app as Administrator. Why can I run tabtip from the command line but not start it from my app?