Post Reply

Forums -> UltraMon™ -> Monitor On/Off -> Auto return window position
RJ   2019-11-05 05:59
Application is maximized on secondary monitor. During the day, the secondary monitor is turned off and this forces the application to be maximized on the primary monitor (Which remains on). When the secondary monitor it turned back on, is it possible to have the application return to the previous size/position automatically? Currently I have to manually bring it back.
Christian Studer   2019-11-05 16:10
Should be possible with a custom script, the script would periodically save window positions if both monitors are enabled, and after re-enabling the secondary it would restore window positions.

If you're interested in this let me know and I'll upload a script which does this.

Christian Studer - www.realtimesoft.com
RJ   2019-11-06 10:16
Sure!
Christian Studer   2019-11-10 15:20
I have uploaded a new version of the SaveRestoreWndPos script which supports this.

To configure the script, open it in a text editor, then set the AUTO_SAVE and AUTO_RESTORE options on the first two lines to True, should look like this:

Const AUTO_SAVE = True Const AUTO_RESTORE = True

Let me know if you have any questions about setting this up.

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ -> Monitor On/Off -> Auto return window position

Post Reply