Post Reply

Forums -> UltraMon™ -> Primary Desktop Icons After Secondary TX on/off
Quick Death   2023-03-23 05:34
Currently a primary monitor and a secondary TV. I place icons on primary monitor, when I turn off/on TV, primary desktop icons rearrange. Desktop Icons -> Restore Positions and icons return. Is it possible to auto-restore icons after 2nd monitor recognized?


2 monitors
Current desktop: 5760x2160 (0,0 - 5760,2160)

Monitor 1 - DELL S3221QS (primary):
Settings: 3840x2160, 32-bit color, 60 Hz refresh rate
Coordinates: 0,0 - 3840,2160. Workspace: 0,0 - 3840,2088
Video card: Intel(R) UHD Graphics 750
Device: \\.\DISPLAY1\Monitor0

Monitor 2 - SAMSUNG:
Settings: 1920x1080, 32-bit color, 60 Hz refresh rate
Coordinates: 3840,0 - 5760,1080. Workspace: 3840,0 - 5760,1080
Video card: Intel(R) UHD Graphics 750
Device: \\.\DISPLAY2\Monitor0
Christian Studer   2023-03-24 02:18
That's not supported directly, but could be done with a script which runs in the background, checks for display configuration changes and restores icon positions if the number of enabled monitors has changed. Let me know if you would be interested in this.

Christian Studer - www.realtimesoft.com
Quick Death   2023-03-24 06:53
Is this normal how the icons rearrange after a secondary monitor is turned on/off?

Interested!
Christian Studer   2023-03-25 13:18
If all desktop icons are on the primary monitor, enabling/disabling the secondary monitor shouldn't affect icon positions, I don't know what might cause this.

I have uploaded a new version of the RestoreDesktopItems script which supports restoring icon positions in response to display configuration changes, to set this up for your needs open the script in a text editor and configure the first 3 lines as follows:
Const RESTORE_ICONS_ONLY = True Const INTERVAL = 3 Const ONLY_RESTORE_AFTER_DISP_CONFIG_CHANGE = True

Christian Studer - www.realtimesoft.com
Quick Death   2023-03-26 04:16
Configured RestoreDesktopItems.vbs

First I ran SaveDesktopItems.vbs

When I modified icons on same monitor, RestoreDesktopItems does not restore the position.

After reboot, some icons are moved on primary monitor and some on secondary monitor, RestoreDesktopIcons does nothing.

Right click->Desktop Icons->Restore Position works and options->restore now works. HELP!!
Quick Death   2023-03-26 04:25
RestoreDesktopItems
Const ONLY_RESTORE_AFTER_DISP_CONFIG_CHANGE = True

Depending on true/false. It either gets restored on shutdown/on OR on seconday monitor on/off. Should I modify the script OR is there a different fix for the shutdown/on?
Christian Studer   2023-03-26 10:26
The script when configured as shown above only restores icon positions when you enable or disable the secondary monitor.

You can save icon positions normally via UltraMon menu > Desktop Icons, you don't need to use the SaveDesktopItems script.

Christian Studer - www.realtimesoft.com
Quick Death   2023-03-26 11:41
I have the icon issue when the secondary monitor is turned on/off/on AND when the computer is shutdown/on. Will this script do both?
Christian Studer   2023-03-27 00:43
No, but this could be easily added. On line 10, insert the following:
sys.RestorePositions flags
This way icon positions get restored when the script is started.

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ -> Primary Desktop Icons After Secondary TX on/off

Post Reply