Open command broken (sometimes)

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
Stef123

Open command broken (sometimes)

Post by Stef123 »

Some file types won't open when I trigger them from a CTB-dropdown like this:

Code: Select all

open """<xypath>\..\MyHelp\color tools.html""";
I finally tracked it down to the following POM entry:

Code: Select all

"System default" html;htm;url>#1053;
When I disable this (top of list) entry, the file will open with the next browser in my POM list.

Double-clicking directly in the list always works, in other words, the top line default only fails when triggered from my CTB dropdown.

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

Re: Open command broken (sometimes)

Post by admin »

You have these two lines in one list? Can you post the whole button code?

Stef123

Re: Open command broken (sometimes)

Post by Stef123 »

admin wrote:You have these two lines in one list?
No, the second line is my POM entry that I have to disable for the files to open from this dropdown:

Code: Select all

"ColorPaste Alt P in red" <xypath>\..\ColorPaste\PasteColorX64.exe 
" • Settings" open "<xypath>\..\ColorPaste\settings.ini"; 
" • Help" open """<xypath>\..\MyHelp\color tools.html""";
The whole button code is a long list of similar commands.

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

Re: Open command broken (sometimes)

Post by admin »

OK, what do you want to happen? Or, why do you define "System default" html;htm;url>#1053; when you don't want it to happen. Sorry, I might be overworked...

Stef123

Re: Open command broken (sometimes)

Post by Stef123 »

admin wrote:..why do you define "System default" html;htm;url>#1053; when you don't want it to happen.
But I want it to happen. It should use the system default. And it does when I dbl-click the list, but not from the CTB dropdown.

Wait - it works now :shock: - I could not get it to work yesterday despite restarts and rebooting machines :veryconfused:

Anyway, forget it, if it happens again on other machines I'll report back.

Stef123

Re: Open command broken (sometimes)

Post by Stef123 »

:evil: It's back, same problem. Another one of those tricky, elusive bugs it seems.
Starting over (XY + machine) makes no difference. It can only be solved by disabling my #1053; line in POM - see above. No other way to open files from a CTB-dropdown.

Stef123

Re: Open command broken (sometimes)

Post by Stef123 »

This is driving me nuts - the more I try to track it down, the weirder it gets.
Run a fresh config and set up PFA:

Code: Select all

jpg> #1003;
Prove it works by dbl-clicking D:\Image.jpg
Now toggle D:\Image.jpg as a favorite. Call up this favorite. It won't open.

Set up more PFAs:

Code: Select all

"System default" html;htm;url>#1053;
"PaleMoon" html;htm;url>..\PaleMoon\Palemoon-Portable.exe
Once again, try it by dbl-cliking D:\Webpage.html.
Now toggle Webpage.html as favorite, call it up. Won't work unless you disable "System default" #1053
Sometimes, however, when I first successfully open the above-mentioned Image.jpg via its above-mentioned PFA (#1003), THEN clicking the Webpage.html favorite, it will open Image.jpg instead. :shock: :shock:

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

Re: Open command broken (sometimes)

Post by admin »

You need to tick this:

Configuration | Controls and More | Miscellaneous | Open favorite files directly

Stef123

Re: Open command broken (sometimes)

Post by Stef123 »

Oops. I assumed it's ON by default in fresh;
So this is not related to my original problem. The down-side of bug-tracking with fresh;

Any ideas what I could try in my own ini-config to get back functional PFA - #ID; -commands when triggered other than directly in the list? The second issue - getting to see the last opened Image-file even though I called up an html-file - seems to point towards some kind of caching problem. I cannot reproduce it every time, but once it happens, I can't get rid of it.

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

Re: Open command broken (sometimes)

Post by admin »

I'm confused now. Which is the "original problem" that is still there?

Stef123

Re: Open command broken (sometimes)

Post by Stef123 »

See my very first post
1) An open-command from a CTB-dropdown does not open the file.
2) If - and only if - the associated first entry in PFA for that file type happens to be #1003; or #1053;

What it does instead
- it will not open the file at all - or
- it will open the file that was last opened from within XY, even if completely unrelated.

Example:
PFA

Code: Select all

jpg> #1003;
html> #1053;
CTB dropdown =

Code: Select all

"open jpg" open """D:\Image.jpg""";
"Open html" open """D:\Webpage.html""";
Only solution that always works: Disable the PFA entries. The files in question will then open with the next associated PFA-entry for their type.
Last edited by Stef123 on 11 Sep 2015 19:26, edited 1 time in total.

Stef123

Re: Open command broken (sometimes)

Post by Stef123 »

Don't know if this is related: When I fire #1003; on a jpg, XY shows me the file only briefly, then goes up one file.

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

Re: Open command broken (sometimes)

Post by admin »

Stef123 wrote:Don't know if this is related: When I fire #1003; on a jpg, XY shows me the file only briefly, then goes up one file.
Yep, I saw this too and fixed it a minute ago.

It's not related.

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

Re: Open command broken (sometimes)

Post by admin »

Stef123 wrote:See my very first post
1) An open-command from a CTB-dropdown does not open the file.
2) If - and only if - the associated first entry in PFA for that file type happens to be #1003; or #1053;

What it does instead
- it will not open the file at all - or
- it will open the file that was last opened from within XY, even if completely unrelated.

Example:
PFA

Code: Select all

jpg> #1003;
html> #1053;
CTB dropdown =

Code: Select all

"open jpg" open """D:\Image.jpg""";
"Open html" open """D:\Webpage.html""";
Only solution that always works: Disable the PFA entries. The files in question will then open with the next associated PFA-entry for their type.
Cannot reproduce. File opens always. Tried also with fresh.

:?

Stef123

Re: Open command broken (sometimes)

Post by Stef123 »

admin wrote: Cannot reproduce. File opens always. Tried also with fresh.
Sigh ... :veryconfused: - and I can reproduce it each and every time on every machine. With fresh.
Not a showstopper, will have to rewrite all my dropdowns to specify an open with -app for each entry. Oh well ....

Post Reply