Breadcrumbs bar: Triangles > 'Drop Menu on Hover'

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
arazi89
Posts: 26
Joined: 08 Jul 2023 16:03

Breadcrumbs bar: Triangles > 'Drop Menu on Hover'

Post by arazi89 »

I am not sure if this is a 'Tips & Tricks' or a 'Wish', but will start here since it may very well be possible via scripting.

I currently have the Breadcrumbs bars set with Triangles to the left of each breadcrumb's name with [x] 'Drop Menu on Hover'. I love it and use it every day. I have not figured out a way to access that Drop Menu any other way through scripting. What I am trying to do is get that exact same Drop Menu whenever I hover over the Name of the breadcrumb, not just the little Triangle to the Name's left. And only because hitting the Name of the breadcrumb with the mouse is a much easier and intuitive target than the little Triangle.

I saw the posatpos() command where it mentions: Supported controls are - ...... Breadcrumb Bar (position of hovered path component). And that is absolutely true. If I run a posatpos() script command with the mouse pointer on the Breadcrumbs bar I can definitely get the index position of each path component accurately, with the 'Triangles' path components returning odd index numbers, and the 'Name' path components returning even index numbers.

How would I make use of that to get the Drop Menu when hovering over a Name? Basically it is "if the value of posatpos() is an even number from the Breadcrumbs Bar then just drop down the exact same Drop Menu as for the odd numbered path component with a value that is one less. Or..... value - 1

Is there a way to do this with a user script or is it something that would need to be hard-coded into the program and not part of the user scripting/tinkering? I don't even know how I would constantly monitor where the mouse is hovering-- I only get the posatpos() now because I manually run a script with the mouse pointer somewhere on the Breadcrumbs Bar.

Thank You!
XYplorer 27.10.0800 LLP
Windows 11 Home 24H2 26100.6584

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

Re: Breadcrumbs bar: Triangles > 'Drop Menu on Hover'

Post by highend »

The value of that index is meaningless without being able to get the full path (and not only the current one) of the breadcrumb bar (and it wouldn't make sense to script the whole thing in XY, a simple {esc} would quit such a script)
One of my scripts helped you out? Please donate via Paypal

arazi89
Posts: 26
Joined: 08 Jul 2023 16:03

Re: Breadcrumbs bar: Triangles > 'Drop Menu on Hover'

Post by arazi89 »

highend wrote: 03 Sep 2023 23:37 The value of that index is meaningless without being able to get the full path (and not only the current one) of the breadcrumb bar (and it wouldn't make sense to script the whole thing in XY, a simple {esc} would quit such a script)
highend wrote: 03 Sep 2023 23:37 without being able to get the full path (and not only the current one)
Yeah, that's what I was looking for. In an array by index, perhaps, of the state of the current breadcrumb bar. To match with the information returned by posatpos().

I was just searching through the Help's Scripting Commands Reference for anything about "breadcrumb bar" or "path component" and posatpos() is what came up.
highend wrote: 03 Sep 2023 23:37 a simple {esc} would quit such a script)
Makes sense.

I just have to get better at quickly targeting the mouse on little triangles. They definitely do the job when I land on them.
XYplorer 27.10.0800 LLP
Windows 11 Home 24H2 26100.6584

Post Reply