Need help fixing a problem in my menu...

Discuss and share scripts and script files...
Post Reply
MBaas
Posts: 684
Joined: 15 Feb 2016 21:08

Need help fixing a problem in my menu...

Post by MBaas »

I have a script which builds a popupmenu. After recent edits, I now have a problem with this menu and I don't understand why it is a problem.
First, here's the problem:
18-11-2023_10-45-15.png
The "-" in the line "APL (190U64)..." (line 36 in the attached file) is supposed to be a separator, like the ones around "BeyondCompare".
And as far as I am concerned, it IS the same! (I believe that line is correct, but somehow it does not have the desired effect)

To repro, please download xymenu.zip, unzip it, execute popupnested(readfile("C:\Temp\xymenu.txt"), 6:=<crlf>, 7:="|"); (adjust path as required) and select the "Open" menu.
To see the attached files, you need to log into the forum.
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.0600 * * LinkTree

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

Re: Need help fixing a problem in my menu...

Post by highend »

2023-11-18_112729.png
No problems here...
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 684
Joined: 15 Feb 2016 21:08

Re: Need help fixing a problem in my menu...

Post by MBaas »

No, that is exactly what I expected to see: the separator separates "Aj Archive Viewer" and the line "APL (190U64..."!

But why are you getting it that way and I am not?
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.0600 * * LinkTree

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

Re: Need help fixing a problem in my menu...

Post by highend »

Because I'm highend and you are... not^^ :masked:

You have mixed line endings (and I resaved the .txt with correct ones)...
2023-11-18_120841.png
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 684
Joined: 15 Feb 2016 21:08

Re: Need help fixing a problem in my menu...

Post by MBaas »

Aaaah - that's what I don't like with VS Code: it normalizes line endings on load, so I didn't see it when I edited the file that my script had created :(
Thanks! :beer:
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.0600 * * LinkTree

Post Reply