Yes, I meant this too. This has been asked before somewhere i think.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";
[Solved] How can i create a submenu in user button?
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: [Solved] How can i create a submenu in user button?
-
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?
Ah! OK; that is possible. (But I have other plans at the moment.
)
FAQ | XY News RSS | XY X
-
Filehero
- Posts: 2731
- Joined: 27 Feb 2012 18:50
- Location: Windows 11@100%
Re: [Solved] How can i create a submenu in user button?
Me, too.FluxTorpedoe wrote:I don't know about other's need, but I wasn't talking about dropping items on a menu,..
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?
Indeed, that would be great. No more difference between genuine XY and XY SC provided menus, result: totally seamless and consistent user experienceadmin wrote:Ah! OK; that is possible.
When is the next beta due? I love those long and winding feature threads.admin wrote:(But I have other plans at the moment.)
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?
Nice that it is possible.admin wrote:Ah! OK; that is possible. (But I have other plans at the moment.)
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: [Solved] How can i create a submenu in user button?
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#p37190admin wrote:Ah! OK; that is possible. (But I have other plans at the moment.)
As a refresher we were specifically trying to tackle 3 key issues:
- A lack of user functions.
- A way to separate menu creation/display from script files.
- 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?
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.
FAQ | XY News RSS | XY X
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
Re: How can i create a submenu in user button?
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)...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:
http://foldermenu.sourceforge.net/
-
stanmarsh
- Posts: 85
- Joined: 10 Mar 2009 07:43
Re: How can i create a submenu in user button?
tried it on using Run Script, Try Script and in the User Button onclick, all three shows a popup with Items 1, 2, and 3serendipity 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.
-
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?
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
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?
Folder menu is nice, a GUI is much easier for people to use.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/
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
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
XYplorer Beta Club