Junctions, again...

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Junctions, again...

Post by Marco »

When the proper options are set in Configuration, the info tip obtained by hovering over a junction shows its target. Is there any way I can obtain that info via scripting?
<prop #xxx> doesn't seem to do the trick (I tried every index from 1 to 300), and <get > shouldn't work either (after reading what the help says).
How can I do?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: Junctions, again...

Post by admin »

You cannot. Currently.

I would tend to enhance the SC property. Would need some special syntax to add XY-specific fields that have no chance to ever collide with future MS fields (they add them by the hundreds to every new Windows version).

Maybe like this, using an asterisk * as prefix:

Code: Select all

text property("*JunctionTarget", [item=<curitem>]);

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Junctions, again...

Post by Marco »

Ok, thanks. I stay tuned :roll:
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: Junctions, again...

Post by highend »

Doesn't

Code: Select all

  text property("LinkTarget", <curitem>);
deliver the correct information?
One of my scripts helped you out? Please donate via Paypal

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

Re: Junctions, again...

Post by admin »

Thinking about it it would be cooler to use a new command name, "propertyex" hmm... :? Any ideas?

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Junctions, again...

Post by Marco »

highend wrote:Doesn't

Code: Select all

  text property("LinkTarget", <curitem>);
deliver the correct information?
Sadly no. A blank window pops. And nothing more.
admin wrote:Thinking about it it would be cooler to use a new command name, "propertyex" hmm... :? Any ideas?
I wonder how you make XY getting that info. May give some ideas...
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: Junctions, again...

Post by admin »

Marco wrote:
highend wrote:Doesn't

Code: Select all

  text property("LinkTarget", <curitem>);
deliver the correct information?
Sadly no. A blank window pops. And nothing more.
admin wrote:Thinking about it it would be cooler to use a new command name, "propertyex" hmm... :? Any ideas?
I wonder how you make XY getting that info. May give some ideas...
Works here under XP (for LNKs, not for junctions). Which nicely demonstrates the problem with Windows shell properties.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Junctions, again...

Post by Marco »

admin wrote:Works here under XP. Which nicely demonstrates the problem with Windows shell properties.
How is that possible? I'm under XP too, yet it doesn't work. Selecting a junction in the list, pasting that code in the address bar and then Enter does nothing (useful).
EDIT: ah ok, for links.
Last edited by Marco on 02 Feb 2012 18:12, edited 1 time in total.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: Junctions, again...

Post by admin »

Marco wrote:
admin wrote:Works here under XP. Which nicely demonstrates the problem with Windows shell properties.
How is that possible? I'm under XP too, yet it doesn't work. Selecting a junction in the list, pasting that code in the address bar and then Enter does nothing (useful).
Sorry, I was not exact: it works for LNKs, not for junctions.

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

Re: Junctions, again...

Post by admin »

OK, I quickly added this -- undocumented -- little trick. These 2 things will wokr in the next beta:

Code: Select all

text property("#JunctionTarget");
text property("#LinkTarget");
Syntax just like it has always been with SC property...

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Junctions, again...

Post by Marco »

Wow, can't wait to see it!

Meanwhile I was writing :oops:
Well, if prop() can't obtain this info then there are two roads: using get(), adding some other field to it, or creating (as you suggest) a propextd() function.
I wouldn't go for the asterisk thing because would generate confusion: if prop() is born to show only the properties that the OS exposes "naturally"/"natively", then it should remain as it is.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: Junctions, again...

Post by admin »

On top you'll get this:

Code: Select all

text property("#label");
text property("#tags");
text property("#comment");
8)

Of course, all with [item=<curitem>] as 2nd argument.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Junctions, again...

Post by Marco »

Thank you :D
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: Junctions, again...

Post by admin »

Question to heavy scripters: Could it be that up to now there was no way to retrieve label, tags, comment of a given item? Can it be true?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Junctions, again...

Post by TheQwerty »

admin wrote:Question to heavy scripters: Could it be that up to now there was no way to retrieve label, tags, comment of a given item? Can it be true?
Report

Post Reply