Page 1 of 2
[Solved] How can i create a submenu in user button?
Posted: 29 Apr 2013 16:31
by stanmarsh
hello xyplorer community!
i want to have a submenu (1-level) in the user button, similar to this app
http://www.horstmuc.de/wpop.htm.
i'm using the user button as an app launcher, move all the apps links to an xys script following xman format,
http://www.xyplorer.com/xyfc/viewtopic.php?f=11&t=7446
can this be made using script?
TIA
Re: How can i create a submenu in user button?
Posted: 29 Apr 2013 16:45
by serendipity
Ofcourse, something like this:
Code: Select all
"Item1"
msg "Hi";
"Item2"
text "Hi"
"Item3"
echo "<curpath>";
Re: How can i create a submenu in user button?
Posted: 30 Apr 2013 11:32
by stanmarsh
thanks serendipity for the help,
i'm not getting a submenu with the example though,
i like to have something like the one with arrows
only when i hover over the menu, the items inside the menu will be shown
TIA
Re: How can i create a submenu in user button?
Posted: 30 Apr 2013 11:42
by admin
Not supported.
Re: How can i create a submenu in user button?
Posted: 30 Apr 2013 13:00
by binocular222
Autohotkey community tried to mimic exactly the same Popsel here
http://www.autohotkey.com/board/topic/5 ... by-popsel/
And I also improved the above script further here:
http://www.autohotkey.com/board/topic/8 ... ntry544910
So, things look like this:
Re: How can i create a submenu in user button?
Posted: 30 Apr 2013 15:46
by stanmarsh
@admin
thanks Donald for the help!
@binocular222
awesome work binocular222! will check out autohotkey!
Thanks xyplorer community!
Re: [Solved] How can i create a submenu in user button?
Posted: 30 Apr 2013 16:28
by FluxTorpedoe
About the
dropdown "on mouseover": this feature may not seem like much, but I think the practical gain would be much greater than can be foreseen... It would "open up" the power of scripted menus!
So it should probably deserve a place (even farrrrrraway) on the roadmap.
Well, it's been a year that I've been dreaming of a
fluid StartMenu button right in XY
(pointing to portable apps).
(I've even already written the pointer in my PowerLauncher script

)
Re: [Solved] How can i create a submenu in user button?
Posted: 30 Apr 2013 16:37
by serendipity
FluxTorpedoe wrote:It would "open up" the power of scripted menus!
Completely agree, would love to have this if its technically possible.
+1 for multi-level menus.
Re: How can i create a submenu in user button?
Posted: 30 Apr 2013 16:41
by serendipity
stanmarsh wrote:thanks serendipity for the help,
i'm not getting a submenu with the example though
I know this is not what you want, but how exactly did you try to run that script?
I tested that script before posting here.
Re: [Solved] How can i create a submenu in user button?
Posted: 30 Apr 2013 16:52
by admin
serendipity wrote:FluxTorpedoe wrote:It would "open up" the power of scripted menus!
Completely agree, would love to have this if its technically possible.
+1 for multi-level menus.
Technically possible ... that is the question; I doubt it. I know droppable menus only from Firefox (and they are owner-drawn AFAIK), I don't think the Windows menu supports it, or does it?
Re: [Solved] How can i create a submenu in user button?
Posted: 30 Apr 2013 16:55
by Filehero
admin wrote:I know droppable menus only from Firefox (and they are owner-drawn AFAIK), I don't think the Windows menu supports it, or does it?
You mean this kind of menus XY itself provides? Confused.

Re: [Solved] How can i create a submenu in user button?
Posted: 30 Apr 2013 16:57
by serendipity
Filehero wrote:admin wrote:I know droppable menus only from Firefox (and they are owner-drawn AFAIK), I don't think the Windows menu supports it, or does it?
You mean this kind of menus XY itself provides? Confused.

Exactly my point, XY already has these menus, I thought you made them yourself? Maybe I am wrong.
Re: [Solved] How can i create a submenu in user button?
Posted: 30 Apr 2013 17:07
by admin
Dropping ON menus is something I have only seen in Firefox. The menus you see in XY are created using Windows API and I don't think they will support dropping. AFAIK they won't even open as long as a mouse button is down.
Re: [Solved] How can i create a submenu in user button?
Posted: 30 Apr 2013 17:32
by FluxTorpedoe
I don't know about other's need, but I wasn't talking about dropping items on a menu, but about submenus dropping (i.e. displayed) when the mouse goes over a line with the black triangle > .
Like e.g. the standard Menu: View > Views > Details
Right now in scripting, the actions (popupmenu or loading other scripted menus) are only activated "onclick" and not "onmouseover".
So we have something like:
"Reports >"
load "Menu_Report.xys";
Thinking aloud:
Prefixing an entry with the ">" sign could tell XY to run it onmouseover (of course that could mean trouble with bad/tricky code, but that's always the case).
>"Reports "
load "Menu_Report.xys";
Re: [Solved] How can i create a submenu in user button?
Posted: 30 Apr 2013 17:39
by binocular222
I don't think I will drop anything on a menu (as I already had droppable user button).
Perhaps, I may need a .xys script which can create a multi-level menu (see my previous post with screen shot - I guess that it's easy to implement)