Cycling behavior of Thumbnail views in scripts

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Cycling behavior of Thumbnail views in scripts

Post by klownboy »

Hi Don, I understand that cycling on a thumbnail view in the right click of the view menu will cycle between the thumbnail view and the non-thumbnail view (e.g., I'm currently in a #308, Large thumbnail view and I click again and view changes to the non-thumbnail view) and that's fine. However, if I'm in a script, I can't immediately change from one size thumbnail view (#308) to another thumbnail view (#307) without the cycling (instead the view changes to the non-thumbnail view (in my case details). As an example, get in an image folder and with a thumbnail view Large thumbnail (#308). Now run the following in a script or AB...

Code: Select all

::if (get("view") == "6") {#307;}
The if statement is true, indicating we are in a large thumbnail view, but instead of the view changing from Large thumbnails to Medium thumbnails (#307) it changes to the non-thumbnail view. I think in scripting the view command ID should immediately change to the thumbnail view specified in the script and not act as a cycle as it does in the menu. It makes it difficult in scripting to change to different thumbnail views on the fly when the view command IDs are acting as a cycle.
Thanks,
Ken

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

Re: Cycling behavior of Thumbnail views in scripts

Post by admin »

Your script works here as expected (change to medium thumbs view). :?

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

Re: Cycling behavior of Thumbnail views in scripts

Post by klownboy »

Thanks Don,it must have been a long day or night. I think what going on is, if you are already in the "view" you are calling out (e.g., you in a medium thumb view and call out ::if (get("view") == "5") {#307;} XY does cycle to the non-thumbnail view ("5" is for medium and #307 is medium). I think I'll simply have to say in the script, if not currently in view desired then specify the cid.

Code: Select all

::if (get("view") != "6") {#308;}
Thanks, Ken

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: Cycling behavior of Thumbnail views in scripts

Post by lian00 »

Hello, I want to create a script for the new feature (middle click on tab or in empty space) that will define a view. But where can I find the list of # like in #308 ?
Windows 10 64 bits

highend
Posts: 14994
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Cycling behavior of Thumbnail views in scripts

Post by highend »

Menu - Help - List All Commands...
One of my scripts helped you out? Please donate via Paypal

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: Cycling behavior of Thumbnail views in scripts

Post by lian00 »

highend wrote: 30 Dec 2020 17:01 Menu - Help - List All Commands...
I should have guessed. Thanks a lot.
Windows 10 64 bits

Post Reply