LNK skipped by PFA

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".
tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post by tiago »

Thanks for the code!

But the PFA itself doesnt fail. It's simply not processed even in Step Mode in the mentioned cases.
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by highend »

When you double click / use "{Enter}" on a .lnk file in v0306 the the full lnk definition isn't executed at all? Show your PFA definitions...
One of my scripts helped you out? Please donate via Paypal

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

Re: LNK skipped by PFA

Post by highend »

Btw, don't use <curitem> in a PFA (like you did in your version of the "script"). PFAs use the special variable <pfaitem>. And you should always use "::" to make clear it's a script that the PFA executes.

lnk>::<all the script commands>
One of my scripts helped you out? Please donate via Paypal

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post by tiago »

highend wrote:When you double click / use "{Enter}" on a .lnk file in v0306 the the full lnk definition isn't executed at all?
Yes. Except if .lnk targets to a non-existent file/folder, which per my project will stop on the first valid location.
highend wrote: Show your PFA definitions...
No need. If fails also on ::fresh, top position.

Code: Select all

lnk>::<all the script commands>
I'll check that, thanks.
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by highend »

Em, now I'm confused. You said the lnk definition isn't executed at all. Now it is executed but only if the lnk points to a non existing destination? Than the step; command should have opened the debug window even if you used a .lnk file that points to a valid destination.

Using:

Code: Select all

lnk>::$go = <prop #linktarget>; while(!exists($go)) { $go = gettoken($go, -2, "\", , 1) }; tab("new"); goto $go;
As the only active (and top) entry in a fresh; instance of v0306 works flawlessly on a .lnk file (with a valid target)...
One of my scripts helped you out? Please donate via Paypal

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post by tiago »

Done.
No, the changes had no impact at all.
It's also of notice that
1. your code doesnt make explicit use of <pfaitem>, falling back to <curitem> if I'm not wrong;
2. either way, explicit <pfaitem> on my v1 made no difference too;
3. if both codes are processing invalid entries correctly then it's the XY precession causing the stale, logically. IMHO.
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by highend »

I didn't say that the changes will fix your problem. They were an annotation to your script line.

1. Yeah, true. But this is a special case because I doubt that you'll try to invoke that PFA no more than one .lnk at the same time

Nevertheless, back to your problem.

Make a fresh instance. Add it as the first line, make sure it's checked:

Code: Select all

lnk>::step; $go = <prop #linktarget>; while(!exists($go)) { $go = gettoken($go, -2, "\", , 1) }; tab("new"); goto $go;
Double click on a .lnk file that points to a valid destination. Does the stepping through a script window get opened?
One of my scripts helped you out? Please donate via Paypal

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post by tiago »

Sure, single items only.

No, debug is not opened. But it does on invalid target, as expected. I.e, I'm double checking everything.

Does it open on your installment? :eh:
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by highend »

Show a screenshot of that window when you click on a .lnk to an invalid target. Btw, what do you mean with "invalid"? Target doesn't exist?

Everything works fine and the stepping through a script window is opened (after adding step; as the first command in the line) whenever I click on any .lnk file. In a fresh; and in my current installation.
One of my scripts helped you out? Please donate via Paypal

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post by tiago »

highend wrote:Show a screenshot of that window when you click on a .lnk to an invalid target. Btw, what do you mean with "invalid"? Target doesn't exist?
Yes.
highend wrote:Everything works fine and the stepping through a script window is opened (after adding step; as the first command in the line) whenever I click on any .lnk file. In a fresh; and in my current installation.
:|

Will do the screenshot a bit later as I have to go now. See ya.
Power-hungry user!!!

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

Re: LNK skipped by PFA

Post by admin »

I'm seeing this anomaly now as well. When the link target is valid then the link is resolved and PFA is bypassed when the item is opened by ENTER or DBLCLICK. I'm working on it...

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

Re: LNK skipped by PFA

Post by highend »

Interesting. It's absolutely flawless (tried 30 .lnk files) with both double clicking and enter on my system *baffled*
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: LNK skipped by PFA

Post by admin »

A dbl-click on a normal LNK file with an existing folder as target completely bypasses PFA. If PFA should process all LNK files then this is a bug. (Option Open Items by First 'Open With...' Match is ticked in PFA button context menu, else the dbl-click *should* bypass PFA, of course.)

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

Re: LNK skipped by PFA

Post by highend »

That's explains it, I have this option ticked (but I'm using my own fully fledged PFA item opener anyway, hence I enabled it in the dark ages I guess)
One of my scripts helped you out? Please donate via Paypal

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: LNK skipped by PFA

Post by tiago »

.lnks not a threat anymore. thanks, guys.
Power-hungry user!!!

Post Reply