How to minimize a standalone patcher window?
What's the best way to force the top level patcher window of a standalone to minimise once it's executed?
There doesn't appear to be any command for [thispatcher] to do this.
Thanks.
Just as an update, I can use @11Olsen's excellent [11GlobalForgroundWindow] to enact a minimise operation but, of course, it only acts on the foreground window at the moment that it is executed. As it happens, this is not my standalone window as I have launched another application in the meantime.
So I need something that will minimise a named window irrespective of its position in the window stack. I'm wondering if there is a [shell] command for this?
bang message
;
max minimizeall
in the standalone , either by delayed loadbang,
or by remote message from that other app.
Thanks for the suggestion.
I've actually resolved it with an idea that I found buried amongst the forum posts from a long time ago. It involves using
(window flags float, window exec) ---> [thispatcher]
to convert the top standalone patch window into a floating window (removes it from the task bar in Windows 10) and then resizing the window so that it is positioned outside the existing screen area, e.g.
(window size 100, -500, 200, -400, window exec) ---> [thispatcher]
That makes the window virtually inaccessible without shutting the standalone down. There is then a
(poll) ---> [mousestate]
trap running in the background that detects the mouse sitting on the top edge of the screen
[mousestate] ---> <vertical location == 0>
for more than a specified amount of time that then retrieves the window back to its original position, e.g.
(window flags nofloat, window exec, window zoom 1, window exec) ---> [thispatcher]