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

Discuss and share scripts and script files...
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: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";
Yes, I meant this too. This has been asked before somewhere i think.

admin
Site Admin
Posts: 66294
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 »

Ah! OK; that is possible. (But I have other plans at the moment. :mrgreen: )

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 »

FluxTorpedoe wrote:I don't know about other's need, but I wasn't talking about dropping items on a menu,..
Me, too.


Cheers,
Filehero

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:Ah! OK; that is possible.
Indeed, that would be great. No more difference between genuine XY and XY SC provided menus, result: totally seamless and consistent user experience :!:
admin wrote:(But I have other plans at the moment. :mrgreen: )
When is the next beta due? I love those long and winding feature threads. :biggrin:


Cheers,
Filehero

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 »

admin wrote:Ah! OK; that is possible. (But I have other plans at the moment. :mrgreen: )
Nice that it is possible. :D

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

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

Post by TheQwerty »

admin wrote:Ah! OK; that is possible. (But I have other plans at the moment. :mrgreen: )
Just a reminder that back in 2009 we had a brief thread discussing some of the foundation for the "next" scripting engine, so when you think about how submenus can be implemented, remember this: http://www.xyplorer.com/xyfc/viewtopic. ... 190#p37190

As a refresher we were specifically trying to tackle 3 key issues:
  1. A lack of user functions.
  2. A way to separate menu creation/display from script files.
  3. Remove the reliance on whitespace in the first column.

Further off-topic.. reading through that thread left me saddened that jacky and zer0 are no longer as active here - they had so many fantastic ideas and wonderful contributions. :(

EDIT: Formatting.

admin
Site Admin
Posts: 66294
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 »

Yes, I remember the thread well. Apparently my brain reserved a bunch of proteins for it. Nevertheless it's still not on top of my list.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

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

Post by Enternal »

binocular222 wrote: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:
Just to let you know, the link I posted here a while ago http://www.xyplorer.com/xyfc/viewtopic.php?f=11&t=9452 is pretty much the same type of utility. However version 3 (the one that is posted) is written in AutoIt. If you looked at the original author's version 2, that's written in AutoHotKey. His script was rather well known on the AutoHotKey forum back then (very first version was in 2009)...
http://foldermenu.sourceforge.net/

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

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

Post by stanmarsh »

serendipity wrote: 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.
tried it on using Run Script, Try Script and in the User Button onclick, all three shows a popup with Items 1, 2, and 3

-

glad to see lots of feedback, hope it gets integrated :)

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

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

Post by klownboy »

Hi stanmarsh,
I'm not sure how long you have been using XYplorer, but until Don finds the time to work on sub-menus or multi-level menus, keep in mind that you can have totally different menus assigned to the right-click of a CTB and left-click of a CTB and also have totally different actions taken when you left mouse button drag and drop a file and right mouse button drag and drop on a CTB - all on one CTB. So in other words, you can get quite a bit of mileage on one CTB. By the way, PopSel is a very nice menu system app. It uses very little resources and so easy to modify either through the interface's configuration or by modifying the text file(.lst). Sometime I find it easier and faster though to have separate menus though for Utilities, and another for Apps, etc. than sifting though multi-level menus. Take a look at these threads.
http://www.xyplorer.com/xyfc/viewtopic. ... 570#p79570
http://www.xyplorer.com/xyfc/viewtopic. ... 939#p82939
Ken

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 »

Enternal wrote:Just to let you know, the link I posted here a while ago http://www.xyplorer.com/xyfc/viewtopic.php?f=11&t=9452 is pretty much the same type of utility. However version 3 (the one that is posted) is written in AutoIt. If you looked at the original author's version 2, that's written in AutoHotKey. His script was rather well known on the AutoHotKey forum back then (very first version was in 2009)...
http://foldermenu.sourceforge.net/
Folder menu is nice, a GUI is much easier for people to use.
When coding, I avoid GUI as much as possible to shorten the code (thus easier for other coders to understand and customize; easier for myself to debug!). My programs are definitely not ready-to-go, but like platforms for others to develop as they wish.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Post Reply