Page 1 of 1

Copy/Move To Button..

Posted: 07 Feb 2011 16:29
by aimy
Ermm..

Why those buttons does not mimic the right-click command which got..
2011-02-07_232445.gif
Can we make it that possible with a click of a button?

Thank you.

Re: Copy/Move To Button..

Posted: 07 Feb 2011 16:55
by j_c_hallgren
aimy wrote:Can we make it that possible with a click of a button?
Given that once you pass the second menu (Copy To/etc), it's a multiple choice of destinations so the problem is: how can that be handled by a button? It can't be...thus one is forced to use a list dialog to pick the choice.

Re: Copy/Move To Button..

Posted: 07 Feb 2011 17:13
by TheQwerty
j_c_hallgren wrote:
aimy wrote:Can we make it that possible with a click of a button?
Given that once you pass the second menu (Copy To/etc), it's a multiple choice of destinations so the problem is: how can that be handled by a button? It can't be...thus one is forced to use a list dialog to pick the choice.
Ah ah.. don't forget that you can pull up most of XY's menus via scripting so creating a custom button with the following would show the Move to dialog on left click (#220 = Edit->Move To...) and the destination menu if you right click and select Destination menu (#151 = File->Move/Copy/Backup To->Move To):
20110207-104516 - Screenshot.png
EDIT: And if you used #150; in the right click action instead of #151, you are up a menu level and can select Move, Copy, or Backup first. (But the caption and icon don't make sense then...)

Re: Copy/Move To Button..

Posted: 08 Feb 2011 04:03
by aimy
TheQwerty wrote:Ah ah.. don't forget that you can pull up most of XY's menus via scripting so creating a custom button with the following would show the Move to dialog on left click (#220 = Edit->Move To...) and the destination menu if you right click and select Destination menu (#151 = File->Move/Copy/Backup To->Move To):
20110207-104516 - Screenshot.png
EDIT: And if you used #150; in the right click action instead of #151, you are up a menu level and can select Move, Copy, or Backup first. (But the caption and icon don't make sense then...)
Thanks a lot for your help.. Really appreciate..

1st of all, may I know where I could get those list of command numbers? How would I know what #151 does for example?

So, in this case.. What I want to achieve is two different buttons of copyto/moveto that automatically pops up the yellow area by left click alone...
2011-02-08_110159.gif
Can i?

Currently "Destination menu|:copyto" #150; would move the file right?

Thank you.

Re: Copy/Move To Button..

Posted: 08 Feb 2011 04:05
by aimy
j_c_hallgren wrote:
aimy wrote:Can we make it that possible with a click of a button?
Given that once you pass the second menu (Copy To/etc), it's a multiple choice of destinations so the problem is: how can that be handled by a button? It can't be...thus one is forced to use a list dialog to pick the choice.
I have a thought there will be sub button/drop down list after the 1st click :D

Re: Copy/Move To Button..

Posted: 08 Feb 2011 12:50
by TheQwerty
aimy wrote:1st of all, may I know where I could get those list of command numbers? How would I know what #151 does for example?
Like everything else in XY there's a couple of ways to find these.

If I know the command I want the ID of I use the Customize Keyboard Shortcuts dialog (Tool -> Customize Keyboard Shortcuts). Then you just select a command and the ID is displayed on a button at the bottom.
20110208-063430 - Screenshot.png
Otherwise, it's easier to do Help->Make List of Commands, which will put all the commands and IDs onto your system clipboard. Paste that into a text editor or Excel and search around for what you want.
aimy wrote:Currently "Destination menu|:copyto" #150; would move the file right?
Not quite. Let me break down what that right-click script actually does:

Code: Select all

"Destination menu|:copyto" #150;
The first part:

Code: Select all

"Destination menu|:copyto"
is the caption and icon. In this case when you right click the button it displays a menu, this says make the menu item for this script "Destination menu" and use XY's internal icon for the default copyto button. (The internal icon names can be found by right clicking a custom toolbar button and opening customize toolbar.)

The second part:

Code: Select all

#150;
is the actual script we are running, and in this case it is just calling a command via its ID. #150; corresponds to File->Move/Copy/Backup To... which means it displays:
20110208-063948 - Screenshot.png
Note that I'm running the command from the address bar here hence the need to 'focus' the List first; I also had to ensure at least 1 item was selected.

This is equivalent to manually doing:
20110208-064111 - Screenshot.png
With that new knowledge, and the assurance that yes you can create those buttons as you desire, I'll let you see if you can figure out how to create them now. ;)

Don't be afraid to ask for more help if needed!

Re: Copy/Move To Button..

Posted: 09 Feb 2011 03:19
by aimy
Thank you so much TheQwerty.

I really appreciate your help.. Thanks..

So now I really get what I really want.. :D :D :D
2011-02-09_101502.gif
Isn't that great? Now we can have more options for copy. And the best of all, I can copy it to another tab :)

Apparently, we also have the list of directories (red box) the same as the original copy..
2011-02-09_101552.gif
Actually, the original idea I have in mind is to have a button that could assist me to copy the item to another open tab, just like the Dual Pane Copy.

So now I have it. XYplorer rocks!

Maybe you guys could consider my idea.. A button to copy to another tab ;)

Thanks.