Programmatically close mobile keyboard from scripting

Hi everyone,

Saw one topic on it, but he didn’t find a good solution. Is there any way to close a mobile keyboard from scripting?

Thanks!

  • Mike

Does anyone know if this is possible?

This is not officially supported, but the following works through Swing:

touchtype = "<type 'com.inductiveautomation.factorypmi.application.components.touchscreen.JDialogPopupWindowParent'>" from javax.swing import JWindow for win in JWindow.getWindows(): if str(win.getClass()) == touchtype: win.dispose()

Edit 10/24/16:
If anyone searches for this in the future, I’d recommend the following over the above code:

[code]from com.inductiveautomation.factorypmi.application.components.touchscreen import JDialogPopupWindowParent
from javax.swing import JWindow

for win in JWindow.getWindows():
if isinstance(win, JDialogPopupWindowParent):
win.dispose()[/code]

It doesn’t rely on hokey type-casting to check for the mobile keyboard.