Junctions, again...
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Junctions, again...
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?
<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]
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...
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:
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>]);FAQ | XY News RSS | XY X
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Junctions, again...
Ok, thanks. I stay tuned 
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
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...
Doesn't
deliver the correct information?
Code: Select all
text property("LinkTarget", <curitem>);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...
Thinking about it it would be cooler to use a new command name, "propertyex" hmm...
Any ideas?
FAQ | XY News RSS | XY X
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Junctions, again...
Sadly no. A blank window pops. And nothing more.highend wrote:Doesn't
deliver the correct information?Code: Select all
text property("LinkTarget", <curitem>);
I wonder how you make XY getting that info. May give some ideas...admin wrote:Thinking about it it would be cooler to use a new command name, "propertyex" hmm...Any ideas?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
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...
Works here under XP (for LNKs, not for junctions). Which nicely demonstrates the problem with Windows shell properties.Marco wrote:Sadly no. A blank window pops. And nothing more.highend wrote:Doesn't
deliver the correct information?Code: Select all
text property("LinkTarget", <curitem>);
I wonder how you make XY getting that info. May give some ideas...admin wrote:Thinking about it it would be cooler to use a new command name, "propertyex" hmm...Any ideas?
FAQ | XY News RSS | XY X
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Junctions, again...
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).admin wrote:Works here under XP. Which nicely demonstrates the problem with Windows shell properties.
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]
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...
Sorry, I was not exact: it works for LNKs, not for junctions.Marco wrote: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).admin wrote:Works here under XP. Which nicely demonstrates the problem with Windows shell properties.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66366
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Junctions, again...
OK, I quickly added this -- undocumented -- little trick. These 2 things will wokr in the next beta:
Syntax just like it has always been with SC property...
Code: Select all
text property("#JunctionTarget");
text property("#LinkTarget");FAQ | XY News RSS | XY X
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Junctions, again...
Wow, can't wait to see it!
Meanwhile I was writing
Meanwhile I was writing
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]
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...
On top you'll get this:

Of course, all with [item=<curitem>] as 2nd argument.
Code: Select all
text property("#label");
text property("#tags");
text property("#comment");Of course, all with [item=<curitem>] as 2nd argument.
FAQ | XY News RSS | XY X
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Junctions, again...
Thank you 
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
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...
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?
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Junctions, again...
Reportadmin 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?
XYplorer Beta Club