Skip to content

Instantly share code, notes, and snippets.

@jumar
Created August 14, 2014 20:29
Show Gist options
  • Save jumar/6d505351aec7ee96ca0a to your computer and use it in GitHub Desktop.
Save jumar/6d505351aec7ee96ca0a to your computer and use it in GitHub Desktop.
Launch WIndows 8 touch keyboard from java
ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c", "\"C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe");
builder.redirectErrorStream(true);
Process p;
try
{
p = builder.start();
BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while (true)
{
line = r.readLine();
if (line == null)
{
break;
}
System.out.println(line);
}
}
catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment