Popup Menu Items

Discuss and share scripts and script files...
totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Popup Menu Items

Post by totmad1 »

Slightly surprised that no one asked about double dragging/selecting of item.
Anyway saw an easy way of improving coding and produced this NEW version.
Was not happy with delay\double drag of first item.
if dragging of first item to button does not work, suggest increasing wait time to 1000 mseconds from 500.
see new MPlftclick.xys inside zip file.
MenuProducer3.zip
(2.64 KiB) Downloaded 188 times
Update:
two further enhancements.
first recognizes folders and drives places goto as command.
second gives you further options i.e folders can "moveto" "copyto" etc.
all you need to do is extract to scripts folder and follow the instructions contained
MenuProducer4.zip
(2.65 KiB) Downloaded 180 times
MenuProducer5.zip
(2.89 KiB) Downloaded 180 times
Update 2013-06-26

For those who might like to do it purely by popupmenu, try this.
Altered instructions.

Update 2013-09-10
checked zip file found had uploaded wrong one
have now altered instructions and added icons.zip
MenuProducer6.zip
(22.26 KiB) Downloaded 207 times
Last edited by totmad1 on 10 Sep 2013 16:31, edited 1 time in total.
totmad1 (totally mad one)

CookieMonster

Re: Popup Menu Items

Post by CookieMonster »

Hi, I have been away from this script for a while. I did my research, and have gotten the script working, up to a point. Where is the third page menu as you wrote ?
You could find mini tree entry in other topic as mentioned before (you will find it in Third page menu)
you could then copy to your own menu.

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Popup Menu Items

Post by totmad1 »

I assume you have downloaded the buttons zip.
You will find it in the script named "Buttons3.xys".
It happens to be the third from bottom of script (exclude "cancel".
Please do not be afraid to ask any questions as it is very easy to be
misunderstood when "can't see the wood for the trees".
totmad1 (totally mad one)

CookieMonster

Re: Popup Menu Items

Post by CookieMonster »

When I right click to load menu, how do I add items such as, miniTree, or Tags, or Erase etc ?
I added button3.xys to the menu folder, I'm assuming it was suppose to add icons, which it did.

At present this is what I see when I right click the button, when I left click, nothing happens;

Image

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Popup Menu Items

Post by totmad1 »

I can see from your pic that you have actually not selected anything 3 times and left clicked the button
(by the way even I still do this).
You have the choice of dragging to the button or selecting and then left click the button.

I am afraid that you have to edit the 0menuTemp.xys (right click button and select "Edit Menu"
then copy the following code to the script

Code: Select all

"Mini Tree ->|:minitree : minitreeME"   Load("*","_minitreeMD;-;_minitreeL;_minitreeR;_minitreeD");
"<- Mini Tree|:minitree|1 : _minitreeMD"   Load("*");
"&Left Click|:minitree : _minitreeL"   Button("minitree", 1);
"&Right Click|:minitree : _minitreeR"   Button("minitree", 2);
Also you might find these tutes useful
http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=10153

please take note have updated MenuProducer.zip with icons and buttons.zip also with icons
totmad1 (totally mad one)

CookieMonster

Re: Popup Menu Items

Post by CookieMonster »

I added the script, and the miniTree showed in the menu. My main question is; how do I add any item to the Popup Menu, must I get the script name of whatever I want to add, or can I drag and drop, how does this work ? :)

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Popup Menu Items

Post by totmad1 »

if you open the scripts folder (right click MenuProducer).
you can drag a script to the button.
Or
you can select a script and left click.

To add a program or file drag or select and left click.
you will be given a choice of "Open" or "Openwith".

To add folder drag or select and left click.
To add a Drive you can only select and left click.
you will be given a choice of "Goto" "Moveto" "Copyto" or "Backupto".

The Buttons scripts can be added as normal or
if you only require one or two from all the buttons.
I am afraid that the only way is to open the relevant Buttons script
and do a copy from script and paste to your menu.

Hope this has helped.
totmad1 (totally mad one)

CookieMonster

Re: Popup Menu Items

Post by CookieMonster »

Image

This is the type of menu, I was originally after.

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Popup Menu Items

Post by totmad1 »

I apologise for the delay in this reply. Been busy elsewhere.
When I saw your image it reminded me why I dumped PD.
I had so many icons I couldn't remember all of them.
If you think about it with a little bit of work you could have ALL buttons available
from ONE menu . If you just want the XY buttons then all you have to do is copy and paste
from the scripts in the "Buttons.zip" to your own menu in your preferred order.
If you want say D: drive you can open Buttons4.xys see C: drive and copy , paste and change C to D.
If after all this you want to cram all XY buttons onto the toolbar you can but you would then have to scroll
the toolbar to find the one icon you are looking for.
Hope this hasn't put you off but I haven't found one file manager which is as good as XYplorer .
totmad1 (totally mad one)

CookieMonster

Re: Popup Menu Items

Post by CookieMonster »

totmad1 wrote:I apologise for the delay in this reply. Been busy elsewhere.
When I saw your image it reminded me why I dumped PD.
I had so many icons I couldn't remember all of them.
If you think about it with a little bit of work you could have ALL buttons available
from ONE menu . If you just want the XY buttons then all you have to do is copy and paste
from the scripts in the "Buttons.zip" to your own menu in your preferred order.
If you want say D: drive you can open Buttons4.xys see C: drive and copy , paste and change C to D.
If after all this you want to cram all XY buttons onto the toolbar you can but you would then have to scroll
the toolbar to find the one icon you are looking for.
Hope this hasn't put you off but I haven't found one file manager which is as good as XYplorer .
Sorry, I don't understand, can you show a screen capture of what you mean ?
What is PD ?

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Popup Menu Items

Post by totmad1 »

Clipboard-1.png
Clipboard-1.png (12.27 KiB) Viewed 2946 times
in this image the first script is the "favs" menu (self explanatory)
next is "0AllMenus" this is where I can reach all
next is "CommentRenamer" I was working on (completed but not moved)
the next 3 do the same thing (should have moved)
"Virtual Machines G2" is a folder I use for testing so in regular use (G2 = goto)
"Folders1 -G2" fav folders goto menu
"move to" fav folders moveto menu
"musicFolders G2" goto menu
"scriptXY" fav scripts & goto menu
"send this tab home" does what it says
next 2 folders are goto regular use
next is moveto (M2 = moveto)
Clipboard-2.png
Clipboard-2.png (8.81 KiB) Viewed 2946 times
this image is my "favs"
first is a menu called "0afull676" this is an experiment in which there are 26 menus with 26 items
next again AllMenus (so usefull)
"AllButtons" is the original
the next 5 buttons you might recognize (also very useful if you don't want an XYicon permanently showing)
finally 2 scripts I have developed from forum
Clipboard-3.png
Clipboard-3.png (18.62 KiB) Viewed 2946 times
this image is my "0AllMenus"
every button (left and right click),script and even Catalog items are available from here.
"z" items are from Catalog

btw PD is one of those inferior file managers

here is a menu showing partly what you had in your image

Code: Select all

"TEST MENUs "    //change here
"Edit Button : editButton"   UserButton(1, 128);   //change here
"Customize Toolbar : custTB"   Button("ctb1", 256);
"Edit script : edit"
  $ScriptFile= self ("file");
	    run notepad $ScriptFile,w;
"-"
"<- TestMenus|:TestMenus|1 :"   Load("menus\TestMenus.xys");  //change here
"-"
"Nuke ->|:nuke : nukeME"   Load("*","_nukeMD;-;_nukeL;_nukeR;_nukeD");
"<- Nuke|:nuke|1 : _nukeMD"   Load("*");
"&Left Click|:nuke : _nukeL"   Button("nuke", 1);
"&Right Click|:nuke : _nukeR"   Button("nuke", 2);
"    ->"    load (-);
"Browse Network ->|:browsenetwork : browsenetworkME"   Load("*","_browsenetworkMD;-;_browsenetworkL;_browsenetworkR;_browsenetworkD");
"<- Browse Network|:browsenetwork|1 : _browsenetworkMD"   Load("*");
"&Left Click|:browsenetwork : _browsenetworkL"   Button("browsenetwork", 1);
"&Right Click|:browsenetwork : _browsenetworkR"   Button("browsenetwork", 2);

"Branch View ->|:flatview : flatviewME"   Load("*","_flatviewMD;-;_flatviewL;_flatviewR;_flatviewD");
"<- Branch View|:flatview|1 : _flatviewMD"   Load("*");
"&Left Click|:flatview : _flatviewL"   Button("flatview", 1);
"&Right Click|:flatview : _flatviewR"   Button("flatview", 2);
"    ->"    load (-);
"Open With ->|:openwith : openwithME"   Load("*","_openwithMD;-;_openwithL;_openwithR;_openwithD");
"<- Open With|:openwith|1 : _openwithMD"   Load("*");
"&Left Click|:openwith : _openwithL"   Button("openwith", 1);
"&Right Click|:openwith : _openwithR"   Button("openwith", 2);
"    ->"    load (-);
"    ->"    load (-);
"Show drive_C  ->|:drive_C : drive_CME"   Load("*","_drive_CMD;-;_drive_CL;_drive_CR;_drive_CD");
"<- Show drive_C |:drive_C|1 : _drive_CMD"   Load("*");
"&Left Click|:drive_C : _drive_CL"   Button("drive_C", 1);
"&Right Click|:drive_C : _drive_CR"   Button("drive_C", 2);
"    ->"    load (-);
"Show drive_D  ->|:drive_D : drive_dME"   Load("*","_drive_dMD;-;_drive_dL;_drive_dR;_drive_dD");
"<- Show drive_D |:drive_D|1 : _drive_dMD"   Load("*");
"&Left Click|:drive_D : _drive_dL"   Button("drive_D", 1);
"&Right Click|:drive_D : _drive_dR"   Button("drive_D", 2);
"    ->"    load (-);

"these next 3 are produced with MenuProducer    ->"    load (-);
"copyto D drive then moveto then backupto    ->"    load (-);
"D C2->|D:\" copyto ("D:\")
"D M2->|D:\" moveto ("D:\")
"D B2->|D:\" backupto ("D:\")
"    ->"    load (-);
"    ->"    load (-);
"    ->"    load (-);
"    ->"    load (-);
"    ->"    load (-);
"    ->"    load (-);
"    ->"    load (-);
"    ->"    load (-);
"    ->"    load (-);
"    ->"    load (-);
"CANCEL" 
totmad1 (totally mad one)

Post Reply