Restore your desktop when the icons get “rearranged”.
Melba23 and I found we were working on very similar ideas to restore the Desktop icons to their normal place if they became “rearranged”. Vista seems to like this doing on occasion just for fun – but we all know some applications and games which change the display resolution or move icons around. This annoys “tidy” people who like their desktops arranged “just so” – I am particularly thinking of this desktop when I say that! 🙂
We combined efforts and here is the result of our labors.
Operation is easy – press “Save” to store a particular configuration and “Restore” to reset the icons to the saved positions in the selected configuration file. “Delete” allows you to remove unwanted configuration files from the list. There is a command line option so that the restoration can be run via HotKeys if required (that is why the script warns that it should be compiled for full functionality). You can decide what to do with any icons that have been added since you last saved the configuration file – the default is to put them in the top-left corner, but you can also banish them way off-screen or, more sensibly, specify a location for them.
A new feature as of ICU v3.4 is the optional Desktop Contextmenu Integration (DCI) for Win7 (Win7 only because Microsoft implemented an easy way to do this through the registry as of this release).
Used AutoIt Versions
- AU 126.96.36.199 up to ICU 2.3
- AU 188.8.131.52 up to ICU 2.4
- AU 184.108.40.206 up to ICU 3.4
- AU 220.127.116.11 up to ICU 3.5
- AU 18.104.22.168 up to ICU 5
- AU 22.214.171.124
Version 3.1 should fix the UAC prompt bug
Version 3.3 should fix the empty save file bug
Version 3.4 Win7: Admin rights no longer needed for DCI
Version 5.0 Win8 compatibility for DCI
v5 > v6 – 2018, Sep 16
– Updated codebase to AutoIt v126.96.36.199
4.0 > 5.0 – 2013, May 24
– Improved Win8 compatibility (esp. Desktop Contextmenu Integration / DCI)
– Added “minimized” command line switch (to start GUI minimized to tray / autostart with windows), see program “About” for details on command line switches
– Added Tray Menu (esp. useful for Win XP) > see “minimized” switch. Also pressing ESC or minimizing the program will send ICU to the system tray now
– Added “toggle” command line switch
– Added “restore %resolution%” and “savereplace %resolution%” command line switches
3.5 > 4.0 – 2013, Jan 11
– Added new method for “Unkown Icon” handling: Top-Left|Bottom-Right|Custom Position|Ask per Icon|Off-Screen
– “Custom Position” and “Ask per Icon” now work by selecting new position with mouse
– Added new command line parameters (see “About” in program for details): restore, autosave, save, savereplace
– Replaced several MsgBoxes with Tray Notifications
– Added “Duplicate” config function
– Enhanced config list right-click contextmenu with some functions
It works fine at least on the XP SP3, Vista and Win7 machines I tested it on. If you find bugs please let me know.
Kudos to: Ascend4nt, Melba23, Prog@ndy, & Valik for parts of the code.
Please let me know if you found some piece of code in the source for which I forgot to mention a credit.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY
The Author of this Software expressly disclaims any warranty for the SOFTWARE PRODUCT. The SOFTWARE PRODUCT and any related documentation is provided “as is” without warranty of any kind, either express or implied, including, without limitation, the implied warranties or merchantability, fitness for a particular purpose, or non-infringement. The entire risk arising out of use or performance of the SOFTWARE PRODUCT remains with you.
NO LIABILITY FOR DAMAGES
In no event shall the author of this Software be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if the Author of this Software has been advised of the possibility of such damages. Because some states/jurisdictions do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you.