Page 1 of 1

CFI On/Off?

Posted: 11 Sep 2013 17:19
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:

Re: CFI On/Off?

Posted: 11 Sep 2013 18:00
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);

Re: CFI On/Off?

Posted: 11 Sep 2013 20:55
by klownboy
CFI has command #653

Code: Select all

"Customized File Icons|:cfi" #653;

Re: CFI On/Off?

Posted: 11 Sep 2013 21:06
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. ;)

Re: CFI On/Off?

Posted: 12 Sep 2013 01:35
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

Re: CFI On/Off?

Posted: 12 Sep 2013 03:20
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.

Mission Accomplished - Re: CFI On/Off?

Posted: 12 Sep 2013 12:48
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!.

Re: CFI On/Off?

Posted: 12 Sep 2013 14:23
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

Re: CFI On/Off?

Posted: 13 Sep 2013 00:24
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:

Re: CFI On/Off?

Posted: 13 Sep 2013 08:16
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...