Show Icon Overlays Setting Toggle

Discuss and share scripts and script files...
Post Reply
byates
Posts: 29
Joined: 18 Mar 2007 00:59
Location: Atlanta, GA USA

Show Icon Overlays Setting Toggle

Post by byates »

I use the Mercurial SCM and the TortoiseHg explorer extensions. XYplorer does a great job of showing the icon overlays for tracked files. There are times, however, when I just wish to quickly browse through my files and don't want the added delay of icon overlays. I would like to make a script that toggles the "Show Icon Overlays" setting. Does anyone know how to do this?

Thanks!

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Show Icon Overlays Setting Toggle

Post by TheQwerty »

Unfortunately the only way to achieve this today via scripting, requires restarting XYplorer.

Code: Select all

"Toggle Icon Overlays"
    #182; //Save All Settings

    //Toggle Overlays
    GetKey($v, "ShowIconOverlays", "Settings");
    SetKey($v XOR 1, "ShowIconOverlays", "Settings");

    #190; //Restart without Saving.
If Don adds this to the Setting() command, you could get that down to 3 lines without a restart, and if he graced us with the ability to toggle or retrieve those settings, it could be 2 or even 1.

byates
Posts: 29
Joined: 18 Mar 2007 00:59
Location: Atlanta, GA USA

Re: Show Icon Overlays Setting Toggle

Post by byates »

Thanks for the quick reply and the script. I will add a feature request to Don's already long list.

Thanks again.

admin
Site Admin
Posts: 64900
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Show Icon Overlays Setting Toggle

Post by admin »

byates wrote:Thanks for the quick reply and the script. I will add a feature request to Don's already long list.
A general functionality to change INI values on the fly is impossible because each value needs its own specific handling, and there are hundreds of values. Forget it, TheQwerty. :mrgreen:

The only hope for byates is to find more users that badly need to have "Show Icon Overlays" added to the main menu -- that's the only way to get a KS/UDC/Script/whatever for it. However, even then this looks like a lo prio wish for me... :wink:

byates
Posts: 29
Joined: 18 Mar 2007 00:59
Location: Atlanta, GA USA

Re: Show Icon Overlays Setting Toggle

Post by byates »

Don't worry about this particular setting as the script that TheQwerty posted works great. The required restart is not an issue here. Having a generalized setting API would be nice though 8) .

Thanks!

admin
Site Admin
Posts: 64900
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Show Icon Overlays Setting Toggle

Post by admin »

byates wrote:Don't worry about this particular setting as the script that TheQwerty posted works great.
Oh yes, I definitely like this part of it:

Code: Select all

$v XOR 1
:D

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Show Icon Overlays Setting Toggle

Post by Muroph »

admin wrote:The only hope for byates is to find more users that badly need to have "Show Icon Overlays" added to the main menu
i wouldn't say i need it that much, but i sure miss a quick way to toggle this setting.
my situation is the opposite of byates.
i usually leave icon overlays disabled to improve speed, but i often have to turn it on to check for hardlinks or work with some files.
so an easily accessible toggle command would be really nice.
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

Post Reply