I have tried executing a taskkill to shut down the On screen Keyboard in windows 10 (OSK.exe), but the OSK seems to behave differently in windows 10... while I can launch the application, I cant shut it down as before with taskkill. Even in the command prompt I get an access denied error... I would settle for the ability to at least minimize it, but that is something I don't know how to do.. any suggestions? My processing line looks like this
public void onScreenKbdMain_click1(GImageButton source, GEvent event) {
println("onScreenKbdMain - GImageButton >> GEvent." + event + " @ " + millis());
if (keyboardOnOff == false) {
sentense="Onscreen keyboard activated";
String[] params = {
"C:/bala/bala.exe", "-t", sentense
};
launch(params);
//pKeyboard = open(new String[] { "c:/Windows/system32/osk.exe" } ); // Windows Keyboard
pKeyboard = launch(new String[] {
"osk"
}
); // Windows Keyboard
keyboardOnOff=!keyboardOnOff;
//println("keyboardOnOff= "+keyboardOnOff);
} else {
sentense="Onscreen keyboard disabled";
String[] params = {
"C:/bala/bala.exe", "-t", sentense
};
launch(params);
pKeyboard = launch(new String[] {
"taskkill IM/osk.exe/T/F"
}
); // Windows Keyboard
keyboardOnOff=!keyboardOnOff;
//println("keyboardOnOff= "+keyboardOnOff);
}
}