Search code examples
javawindowskeyboardswton-screen-keyboard

Opening the Windows 8 touch keyboard


Does somebody know how open the "windows 8 touch keyboard" from an SWT application?

I want to open the "touch keyboard" when the SWT input get focus, like other native applications do.

Perhaps there is a particular "style" to use, when instantiating the Text class?

Something like:

text = new Text(shell, SWT.OPEN_TOUCH_KEYBOARD);

Solution

  • You can open the on screen keyboard by calling

    Program.launch("osk.exe");
    

    when the Text gains focus.

    That'll make your application very platform (and even version) specific, so make sure that you're running an OS that has the on screen keyboard available.