LNK skipped by PFA
Forum rules
You might want to read this if you're looking for priority service
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%).
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.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
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%).
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.
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
Thanks for the code!
But the PFA itself doesnt fail. It's simply not processed even in Step Mode in the mentioned cases.
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
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
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>
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
Yes. Except if .lnk targets to a non-existent file/folder, which per my project will stop on the first valid location.highend wrote:When you double click / use "{Enter}" on a .lnk file in v0306 the the full lnk definition isn't executed at all?
No need. If fails also on ::fresh, top position.highend wrote: Show your PFA definitions...
Code: Select all
lnk>::<all the script commands>Power-hungry user!!!
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: LNK skipped by PFA
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:
As the only active (and top) entry in a fresh; instance of v0306 works flawlessly on a .lnk file (with a valid target)...
Using:
Code: Select all
lnk>::$go = <prop #linktarget>; while(!exists($go)) { $go = gettoken($go, -2, "\", , 1) }; tab("new"); goto $go;
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
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.
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
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:
Double click on a .lnk file that points to a valid destination. Does the stepping through a script window get opened?
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;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
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?
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?
Power-hungry user!!!
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: LNK skipped by PFA
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.
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
Yes.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?
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
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...
FAQ | XY News RSS | XY X
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: LNK skipped by PFA
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
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.)
FAQ | XY News RSS | XY X
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: LNK skipped by PFA
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
XYplorer Beta Club