Hi again.
Is it possible for me to make a custom button that able to Copy/Move the selected items to:
1. Other Tabs
2. Recent Location
The overall idea:
Thank you.
Custom Copy/Move to Other Tabs/Recent Location
-
aimy
- Posts: 186
- Joined: 26 Feb 2007 15:44
Custom Copy/Move to Other Tabs/Recent Location
To see the attached files, you need to log into the forum.
-
aimy
- Posts: 186
- Joined: 26 Feb 2007 15:44
Re: Custom Copy/Move to Other Tabs/Recent Location
Is this impossible? 
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Custom Copy/Move to Other Tabs/Recent Location
Don't have enough time atm, but at least the "move / copy to tab" should be achievable via scripting (but it won't look so "styled" like in your screenshot).
If the recent locations are available via scripting: Don't know, not enough time to research that.
If the recent locations are available via scripting: Don't know, not enough time to research that.
One of my scripts helped you out? Please donate via Paypal
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Custom Copy/Move to Other Tabs/Recent Location
How about using the File > Move/Copy/Backup To... submenus?
For instance:which will give you:The command for the Move To menu is #151, so see if you can create the other one yourself.
For instance:which will give you:The command for the Move To menu is #151, so see if you can create the other one yourself.
To see the attached files, you need to log into the forum.
-
aimy
- Posts: 186
- Joined: 26 Feb 2007 15:44
Re: Custom Copy/Move to Other Tabs/Recent Location
Thanks highend and Qwerty for your response.
But that's not it. I know that there's such option.
I adamantly want to achieve exactly as the screenshot that I've posted.
Well I hope that I can.
Thanks.
But that's not it. I know that there's such option.
I adamantly want to achieve exactly as the screenshot that I've posted.
Well I hope that I can.
Thanks.
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
-
aimy
- Posts: 186
- Joined: 26 Feb 2007 15:44
Re: Custom Copy/Move to Other Tabs/Recent Location
Because in my situation, that's all I need i.e. move the selected files to another tab or to the recently visited location.TheQwerty wrote:Why?
Thanks.
Anyone can help me please?
Admin??
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Custom Copy/Move to Other Tabs/Recent Location
Well I can tell you it is possible, but significantly more complicated since you want to generate a dynamic menu.
Frankly, it's not worth all the effort to recreate the menu just because the current one offers more functionality than needed.
Frankly, it's not worth all the effort to recreate the menu just because the current one offers more functionality than needed.
-
aimy
- Posts: 186
- Joined: 26 Feb 2007 15:44
Re: Custom Copy/Move to Other Tabs/Recent Location
Yeah I really thought that it is possible..TheQwerty wrote:Well I can tell you it is possible, but significantly more complicated since you want to generate a dynamic menu.
Frankly, it's not worth all the effort to recreate the menu just because the current one offers more functionality than needed.
It's just that I don't know how I'm gonna pull out the other tabs & recent location directory using a script.
I really hope that can someone could lend me a help..
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Custom Copy/Move to Other Tabs/Recent Location
E.g.:
tab()
has a count parameter. So switch to one of the panes, count the tabs there and use a while loop to iterate through them, saving their paths into a variable.
tab()
has a count parameter. So switch to one of the panes, count the tabs there and use a while loop to iterate through them, saving their paths into a variable.
One of my scripts helped you out? Please donate via Paypal
-
aimy
- Posts: 186
- Joined: 26 Feb 2007 15:44
Re: Custom Copy/Move to Other Tabs/Recent Location
Again,
Is this possible with the combination of "Recent Locations|:mru" button "mru" and tab() function?
With the new version 10.60?
Don, could you please help me..
Thank you.
Is this possible with the combination of "Recent Locations|:mru" button "mru" and tab() function?
With the new version 10.60?
Don, could you please help me..
Thank you.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Custom Copy/Move to Other Tabs/Recent Location
You can combine the button commands but they will do what the buttons do, i.e. go to MRU or Tab locations.aimy wrote:Again,
Is this possible with the combination of "Recent Locations|:mru" button "mru" and tab() function?
With the new version 10.60?
Don, could you please help me..
Thank you.
But in your case you want to use "copy to" command to these locations, so it cannot be done with buttons.
The lists Tab and mru have to be read manually, there is no way out.
OK, here is a quick script that will let you copy the selected items to Tab or mrus of copyto.
Code: Select all
//Popup Tabs (of activepane) and copyto MRUs as menu
$tabcount= tab (, "count");
$tabpaths="";
$count=1;
WHILE ($tabcount>$count-1){
$newpath= tab (, "path",$count);
$tabpaths="$tabpaths|$newpath";
$count++;
}
$tabpaths= substr ($tabpaths, 1);
$mrupaths= get("list_copyto", "|");
copyto popupmenu("$tabpaths|-|$mrupaths");
XYplorer Beta Club