Search code examples
javakeyboardvirtual

open the Windows virtual keyboard in a Java program


I would like to create an event in a button.

When I click in the button, I would like to open the Windows virtual keyboard.

Can you help me with the code?

Thank you for your collaboration.

Best regards.


Solution

  • I think it would be as simple as this: Runtime.getRuntime().exec("osk");