- switching between detail and thumbnail
I want this script to switch to detail if it is not and to switch to thumbnail if it is detail now.
- switching between flat view, flat view group and no flat view
I want this script to switch to detail if it is not and to switch to thumbnail if it is detail now.
For 1, you can also use the Set command to toggle/cycle through a list of modes. (Not at a PC to give exact details. Ask if you need more information.)
Here is my button code to switch between view modes. You can change it to include the flatview modes.
@ifset:VIEW=Thumbnails
Set VIEW=Details
@ifset:COLUMNSTOGGLE=thumbnail
Set COLUMNSREMOVE=thumbnail
Set VIEW=Thumbnails
@ifset:else
Set VIEW=Details
Set COLUMNSADD=thumbnail(0,96)
The default toolbars also have a button that cycles through Flat View modes.
I make 2 script for details/thumbnails, details(thumbnails column)/tiles toggle respectively. I suppose they run like a toggle switch, the default for the first script and second script should be details and details(thumbnails column) respectively. How can I add some conditions to the command?
@if:!Set VIEW=Details (can I include the criteria of details column here?)
Set VIEW=Details
@if:!Set VIEW=Details
Set VIEW=Details
@if:Set COLUMNSTOGGLE=thumbnail
Set COLUMNSREMOVE=thumbnail
Set VIEW=Details
@if:Set VIEW=Details
Set VIEW=Thumbnails
@if:!Set VIEW=Details
Set VIEW=Details
Set COLUMNSADD=thumbnail(0,{dpi|96})
@toggle:if&COLUMNSTOGGLE=thumbnail
@if:else
Set VIEW=Tiles
While for the flat view switch over among 3 modes, I have no idea. I have tried for some time, nothing work. I don't see cycle in the option
If you want complex logic, it's best to use scripting instead of simple commands. I.e. JScript.