Using thumbsconf in a script

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Using thumbsconf in a script

Post by klownboy »

I want to control the use of captions in a script via Custom Event Actions. I noticed that thumbsconf("1"); doesn't work. As seen in the help file, Thumbsconf("!"); works to toggle, but I have to put in a comma after the 0 or 1 to make it work with thumbsconf("0,"). Not a big deal, but is that expected or a bug? Edit: Same result on X64 and x32.

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

Re: Using thumbsconf in a script

Post by admin »

The "settings" parameter in SC thumbsconf is overloaded, see Help:
If numeric: Return this number of values (counted from left).
The script engine currently sees a quoted number as a number in this context. That could be fixed, but the fix would probably break old scripts.

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

Re: Using thumbsconf in a script

Post by klownboy »

No problem at all Don now that I know. Thanks.

Post Reply