Page 1 of 1

[solved] script for tiles problem

Posted: 19 Sep 2022 15:51
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).

Re: script for tiles problem

Posted: 20 Sep 2022 01:33
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

Re: script for tiles problem

Posted: 20 Sep 2022 10:32
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.

Re: script for tiles problem

Posted: 21 Sep 2022 03:18
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.

Re: script for tiles problem

Posted: 21 Sep 2022 09:43
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.

Re: [solved] script for tiles problem

Posted: 21 Sep 2022 11:44
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.