Created
August 14, 2014 20:29
-
-
Save jumar/6d505351aec7ee96ca0a to your computer and use it in GitHub Desktop.
Launch WIndows 8 touch keyboard from java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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