[FIXED]wonky hidden subscript execution

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
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

[FIXED]wonky hidden subscript execution

Post by bdeshi »

Code: Select all

"visible : visible"
  echo "visible subscript runs";
"_hidden : hidden"
  echo "hidden subscript runs";
"_hidden" is executed instead of "visible". What gives?

[edited subject]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: wonky subscript execution with exactly one visible subscript

Post by PeterH »

Maybe change
"_hidden : hidden"
to
"hidden : _hidden"
(I didn't study syntax - I just tried it :titter: )

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: wonky subscript execution with exactly one visible subscript

Post by bdeshi »

That's not the issue. Why is _hidden running? If XY thinks it's not hidden, I should get a multi-script menu with both visible and hidden.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: wonky subscript execution with exactly one visible subscript

Post by admin »

Yep, that's a bug. Fix comes. Thanks!

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: wonky subscript execution with exactly one visible subscript

Post by PeterH »

OK, you're right. Now having read it, syntax says:

Code: Select all

To hide a script simply prefix an underscore to the caption or label (a hidden script does not need a caption anyway). 
So the underscore should work in both situations.

And, as mentioned here, the caption for a hidden script has no function. So I'm used to just define the label with underscore, and all works well.

In the end: no need to use a caption in this case, but it is a bug nevertheless.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: wonky hidden subscript execution

Post by bdeshi »

:bug: :blackstorm: . :tup:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply