[Solved] How can i create a submenu in user button?

Discuss and share scripts and script files...
stanmarsh
Posts: 85
Joined: 10 Mar 2009 07:43

[Solved] How can i create a submenu in user button?

Post 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
Last edited by stanmarsh on 30 Apr 2013 15:47, edited 1 time in total.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: How can i create a submenu in user button?

Post by serendipity »

stanmarsh wrote: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
Ofcourse, something like this:

Code: Select all

"Item1"
  msg "Hi";
"Item2"
  text "Hi"
"Item3"
  echo "<curpath>";

stanmarsh
Posts: 85
Joined: 10 Mar 2009 07:43

Re: How can i create a submenu in user button?

Post 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 Image

only when i hover over the menu, the items inside the menu will be shown

TIA

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

Re: How can i create a submenu in user button?

Post by admin »

Not supported.

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: How can i create a submenu in user button?

Post 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:
To see the attached files, you need to log into the forum.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

stanmarsh
Posts: 85
Joined: 10 Mar 2009 07:43

Re: How can i create a submenu in user button?

Post by stanmarsh »

@admin

thanks Donald for the help!

@binocular222

awesome work binocular222! will check out autohotkey!


Thanks xyplorer community!

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: [Solved] How can i create a submenu in user button?

Post 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 8) )

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: [Solved] How can i create a submenu in user button?

Post 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.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: How can i create a submenu in user button?

Post 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.

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

Re: [Solved] How can i create a submenu in user button?

Post 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?

Filehero
Posts: 2731
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: [Solved] How can i create a submenu in user button?

Post 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. :?:

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: [Solved] How can i create a submenu in user button?

Post 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.

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

Re: [Solved] How can i create a submenu in user button?

Post 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.

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: [Solved] How can i create a submenu in user button?

Post 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";

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: [Solved] How can i create a submenu in user button?

Post 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)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Post Reply