Page 2 of 2

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

Posted: 30 Apr 2013 17:40
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.

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

Posted: 30 Apr 2013 17:42
by admin
Ah! OK; that is possible. (But I have other plans at the moment. :mrgreen: )

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

Posted: 30 Apr 2013 17:42
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

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

Posted: 30 Apr 2013 17:49
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

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

Posted: 30 Apr 2013 18:15
by serendipity
admin wrote:Ah! OK; that is possible. (But I have other plans at the moment. :mrgreen: )
Nice that it is possible. :D

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

Posted: 30 Apr 2013 18:28
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.

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

Posted: 30 Apr 2013 19:18
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.

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

Posted: 01 May 2013 03:49
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/

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

Posted: 01 May 2013 10:30
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 :)

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

Posted: 01 May 2013 15:19
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

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

Posted: 01 May 2013 16:26
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.