Load Selected Script File - Menu entry disabled

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Load Selected Script File - Menu entry disabled

Post by highend »

Nothing important, but I just stumbled upon it.

E.g. there is <xyscripts>\snippets
A file name "a.xys" (it doesn't matter) in that subfolder.

Ctrl + c on "a.xys", doubleclick on white space to go back to <xyscripts> (doesn't matter how you get back to <xyscripts>, back-button leads to the same result).

Ctrl + v. Now "a.xys" is in <xyscripts>.

It is selected and focused. <selitems> and <focitem> in addressbar report that.

Nevertheless -> Menu - Scripting - Load Selected Script File is now greyed out for "a.xys".

It's not about how the file is named or where it's stored, it's just about after copying & pasting the menu item is disabled for that item.
One of my scripts helped you out? Please donate via Paypal

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

Re: Load Selected Script File - Menu entry disabled

Post by admin »

The meaningful test here would have been:

Code: Select all

echo <curitem>;
But I will change it to make it work in your situation (file not actively focused + selected by user) as well.

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

Re: Load Selected Script File - Menu entry disabled

Post by highend »

echo <curitem>;
Leads to the same result
One of my scripts helped you out? Please donate via Paypal

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

Re: Load Selected Script File - Menu entry disabled

Post by admin »

Then it would have worked.

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

Re: Load Selected Script File - Menu entry disabled

Post by highend »

GIF.gif
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

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

Re: Load Selected Script File - Menu entry disabled

Post by admin »

I believe that it did not work. But it looks like your testing with

Code: Select all

echo <curitem>;
was wrong. You have to do the test in the exact situation when it does not work.

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

Re: Load Selected Script File - Menu entry disabled

Post by highend »

After pasting the file in R:\ (last video) I can switch to the address bar via Ctrl + Alt + a, enter ::echo <curitem>; {ENTER}
I get the pasted .xys file name. Switching back via Ctrl + Alt + l and then clicking on the Scripting menu -> Greyed out
One of my scripts helped you out? Please donate via Paypal

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

Re: Load Selected Script File - Menu entry disabled

Post by admin »

:oops: You are right. :oops:

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

Re: Load Selected Script File - Menu entry disabled

Post by highend »

Confirmed fixed with v16.70.0011, thanks!
One of my scripts helped you out? Please donate via Paypal

Post Reply