cycle through views

Discuss and share scripts and script files...
Post Reply
yusef88
Posts: 1123
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

cycle through views

Post by yusef88 »

Hi Everyone!
I want to cycle through some views by one keyboard shortcut.. possible?

Code: Select all

#302	View | Views | Details
#305	View | Views | Small Icons
#309	View | Views | Large Icons
#306	View | Views | Thumbnails #1 (72x72)	 >> (Shift+`)
#307	View | Views | Thumbnails #2 (128x128)	 >> (Shift+1)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: cycle through views

Post by highend »

And the forum search function isn't working?

viewtopic.php?f=3&t=17699

A few more if's (or a switch statement), done...
One of my scripts helped you out? Please donate via Paypal

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: cycle through views

Post by Filehero »

Another cycler variant:

Code: Select all

if (tab("get", "term") UnLike "*:flat*") {                         // If not branch > branch
    goto tab("get", "term")."? /:flat";
  } else {
    if (tab("get", "term") Like "*/:flat") {                       // If default branch > flatfiles
        goto tab("get", "term")."files";
    } elseif (tab("get", "term") Like "*/:flatfiles") {            // If flatfiles > flatdirs
        goto replace(tab("get", "term"), "/:flatfiles", "/:flatdirs");
    } else {                                                       // If flatdirs > unbranch
        goto replace(tab("get", "term"), "? /:flatdirs", "");
    }
  }

yusef88
Posts: 1123
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: cycle through views

Post by yusef88 »

Thanks

Code: Select all

    $mode = get("View");
    if ($mode == 0) { #304; }
    if ($mode == 2) { #305; }
    if ($mode == 3) { #309; }
    if ($mode == 7) { #306; }
    if ($mode == 4) { #307; }
    elseif ($mode == 5) { #302; }

Post Reply