Window Minize Button Script

is there a way in scripting to duplicate the function of the Windows Minimize button?


I would like to create a button on the main screen that minimizes the running client. On touch screens, operators with fat fingers end up using sharp objects that eventually punches a hole in the touchscreen.

Try this one:

win = system.gui.getParentWindow(event) parent = win while parent is not None: win = parent parent = win.getParent() print dir(win) win.setState(win.ICONIFIED)

1 Like

[quote=“JordanCClark”]Try this one:

win = system.gui.getParentWindow(event) parent = win while parent is not None: win = parent parent = win.getParent() print dir(win) win.setState(win.ICONIFIED)[/quote]

Outstanding!

Thanks