[solved] script for tiles problem

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
lian00
Posts: 354
Joined: 09 Jul 2014 17:12

[solved] script for tiles problem

Post by lian00 »

Hello, I noticed that the code to go in tile view and back does not work anymore in last beta version.

Code: Select all

thumbsconf((thumbsconf() == '0,1,0,5,0') ? '1,0,4,2,0' : '0,1,0,5,0');
First click on the button dedicated, it shows the tiles but it won’t show default thumbnail view with a second click.

(and I did not find the setting managing wheel mouse and zoom when previewing in hovering. I need to deactivate this).
Last edited by lian00 on 21 Sep 2022 09:43, edited 1 time in total.
Windows 10 64 bits

jupe
Posts: 2758
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: script for tiles problem

Post by jupe »

1) Yeah thumbsconf was enhanced with extra params recently, so you'll need to do the same as what you did last time you asked this question (ie. add the extra params, which of course are documented):

viewtopic.php?p=195333#p195333

2) Repetitively press R while hover box showing

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

Re: script for tiles problem

Post by lian00 »

Thanks for your answer. But I’m not very good in XYS scritpting and I looked at help file without understanding what could have been changed - maybe change ' to " ? I suppose I will have to create two buttons or give two different actions for one button.

Thanks again for the R tip. I think I ask for this R action two times each year.
Windows 10 64 bits

jupe
Posts: 2758
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: script for tiles problem

Post by jupe »

So you actually read the linked topic, and the help file, and you still can't see the issue, well maybe this helps:

thumbsconf((thumbsconf() Like '0,1,0,5,*' ? '1,0,4,2' : '0,1,0,5'));

That version should be more resilient to XY adding params in the future without breaking too.

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

Re: script for tiles problem

Post by lian00 »

Thanks a lot. So the difference is the Like but there is no information in the link and the help file for thumbsconf, so I suppse it’s more general. It’s very difficult to guess this kind of thing when you are not into XYplorer scripting thing.
Windows 10 64 bits

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: [solved] script for tiles problem

Post by klownboy »

lian00 wrote: 21 Sep 2022 09:43 So the difference is the Like but there is no information in the link and the help file for thumbsconf,
The difference is the "Like" as well as the "*". Thumbsconf is a scripting command. For help with scripting commands, go to the menu Help > Help with Scripting Commands and look for the command in the list.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

Post Reply