Smart Dropdown Buttons: faulty processing of %-delimiter

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
Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Smart Dropdown Buttons: faulty processing of %-delimiter

Post by Filehero »

Hi,

Code: Select all

%winsysdir%\Calc.exe
"Calculator" %winsysdir%\Calc.exe
Over here (14.50.0107) the 2nd entry fails with a a script error "... not a valid script command".


Cheers,
Filehero

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

Re: Smart Dropdown Buttons: faulty processing of %-delimiter

Post by bdeshi »

did that ever work?

according to the manual,

Code: Select all

%winsysdir%\Calc.exe
is equivalent to

Code: Select all

"%winsysdir%\Calc.exe|%winsysdir%\Calc.exe" goto "%winsysdir%\Calc.exe";
that is, the caption is generated from shorthand, so maybe, if you already provide a caption*, shorthand syntax doesn't apply anymore. (and the text is parsed as a normal script)


* or probably other script elements

============
by the way, a single line of shorthand script always fails. (Did it always?)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Smart Dropdown Buttons: faulty processing of %-delimiter

Post by Filehero »

Hi Sammay,
SammaySarkar wrote:did that ever work?
Sure, see entry #3 where %var% is hard-wired

Code: Select all

%winsysdir%\Calc.exe
"Calculator" %winsysdir%\Calc.exe
"Calculator" C:\Windows\System32\Calc.exe
SammaySarkar wrote:according to the manual, ... is equivalent to

Code: Select all

"%winsysdir%\Calc.exe|%winsysdir%\Calc.exe" goto "%winsysdir%\Calc.exe";
In "my" manual it gets auto-expanded to

Code: Select all

"%winsysdir%\Calc.exe|%winsysdir%\Calc.exe" run "%winsysdir%\Calc.exe";

Cheers, FH

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

Re: Smart Dropdown Buttons: faulty processing of %-delimiter

Post by bdeshi »

huh? that makes my post pointless.

(I know it applies to all goto,run,open; I'd just copied from the first example I found without checking... :oops: )
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Smart Dropdown Buttons: faulty processing of %-delimiter

Post by Filehero »

Hi Don,

a friendly bump.
It isn't a major bug but it strikes me serveral times on a working day, so I want to make sure you notice it.

Cheers,
Filehero

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

Re: Smart Dropdown Buttons: faulty processing of %-delimiter

Post by admin »

Friendly fix comes.

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Smart Dropdown Buttons: faulty processing of %-delimiter

Post by Filehero »

Hi Don,

it's a tremendous pleasure for me to announce that your efforts have turned into a sparkling and brillant success!
Thanks for the quick fix which I hereby confirm. :)


FH

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

Re: Smart Dropdown Buttons: faulty processing of %-delimiter

Post by admin »

Now that was a friendly confirmation. :)

Post Reply