CFI On/Off?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

CFI On/Off?

Post by aurumdigitus »

CFI has to be enabled in Configuration. Got that. Subsequently they can be turned On/Off with an amusing TB button. But what is the Command Number to do this is a script?

Addendum: While researching this via Help and PDF Manual it is not very constructive that Custom File Icons and Portable File Icons are used interchangeability. Wouldn't it be advantageous to standardize just one expression? Think of the poor newbie trying to puzzle this out in the now 521 page user guide. :roll:

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

Re: CFI On/Off?

Post by TheQwerty »

Yet another command that is only easily accessible via toolbar and mouse.

I'll repeat my opinion that anything and everything that can be done via the toolbar buttons needs to be a command with ID and assignable shortcut key.

In the interim you can use:

Code: Select all

Button('cfi', 1);

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: CFI On/Off?

Post by klownboy »

CFI has command #653

Code: Select all

"Customized File Icons|:cfi" #653;

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

Re: CFI On/Off?

Post by TheQwerty »

klownboy wrote:CFI has command #653

Code: Select all

"Customized File Icons|:cfi" #653;
This corresponds to "Tools | List Management | Portable File Icons..." which opens the list management dialog for CFI.

There's also command #605 which opens the "Tools | Customize File Icons..." dialog.

Neither of these toggle the "Configuration | Refresh, Icons, History | Icons | Enable custom file icons" option like the toolbar button.

As I said this seems to be one of those mouse-preferred commands. ;)

Trasd
Posts: 147
Joined: 19 Oct 2011 15:45

Re: CFI On/Off?

Post by Trasd »

TheQwerty wrote:Yet another command that is only easily accessible via toolbar and mouse.

I'll repeat my opinion that anything and everything that can be done via the toolbar buttons needs to be a command with ID and assignable shortcut key.
+1
Trasd

"Any sufficiently advanced technology is indistinguishable from magic." A.C.C.

"I'll tell you this, no eternal reward will forgive us now for wasting the dawn." J. M.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: CFI On/Off?

Post by klownboy »

Sorry I misread / misunderstood the first post. Yes, #605 and #653 yield the same "Portable File Icons" dialog box other than the header for Customize File Icons vs List Management.

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Mission Accomplished - Re: CFI On/Off?

Post by aurumdigitus »

Have placed Button('cfi', 1); into what is unimaginatively called The Script of Scripts. These are mostly one- liners that execute important functions on this system.

The whole impetus was to be able to remove the CFI toggle button from TB so that it would again fit within confines of window without having to scroll. Lost a cute icon but that was the price to be paid. :wink:

Thanks again to TheQwerty for the code. Well done!.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: CFI On/Off?

Post by klownboy »

Just curious aurumdigitus since I've never actually turned CFI off since Don created it, why do you want to turn it on and off? Is it a speed issue or something else?

You probably already know you don't have to be without that "cute icon" completely by simply referring to the same icon in your Script of Scripts menu as in the example below.

Code: Select all

"Trigger Customized File Icons|:cfi" Button('cfi', 1);
"System info|C:\Windows\System32\shell32.dll /24" run "msinfo32";
"MSconfig|C:\Windows\System32\shell32.dll /23" run '"C:\Windows\SysNative\cmd.exe" /C msconfig',,,0;
"Control panel|C:\Windows\System32\shell32.dll /22" #640;
"Edit User Commands|:udc" button "udc";
"Custom Keyboard Shortcuts|:cks" #602;
"System Properties Protection|C:\Windows\System32\shell32.dll /22";
    if (%osbitness% == "64") {$cmd = "%SystemRoot%\SysNative\cmd.exe";}
         else {$cmd = "%SystemRoot%\System32\cmd.exe";}
      if (! exists($cmd)) {
         $cmd = "%ComSpec%";
         End ! Exists($cmd), "I give up trying to locate cmd.exe - go away!";}
    run """$cmd"" /C systempropertiesprotection",,, 0;
Ken

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: CFI On/Off?

Post by aurumdigitus »

@ klownboy - Thank you for the reminder about resuscitating the "cute icon". As I mentioned in another recent thread, keeping in mind all the nuances and subtleties of XY ensconced in the 521 page manual is a tough row to hoe.

As for your query about wandering why the need to cycle CFI, the reasons lie somewhere between arcane and esoteric. :biggrin:

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

Re: CFI On/Off?

Post by admin »

aurumdigitus wrote:CFI has to be enabled in Configuration. Got that. Subsequently they can be turned On/Off with an amusing TB button.
Sorry to chime in late, but this is not correct. The smiling button and the Configuration are functionally identical. But there is a bug I just saw thanks to this thread: the button state does NOT update to a change of the Configuration setting (it works vice versa though). Fix coming...

Post Reply