Quick way to copy tab to opposite panel?
Moderators: fgagnon, nikos, Site Mods
Quick way to copy tab to opposite panel?
The previous thread,"Quick way to Open folders in Other Panel ?", leads me to ask:
is there a command and shortcut to 'Copy Across' - that is, to clone a tab in the opposite pane? Not 'Force' (Ctrl + I), but copy as a new tab.
Thanks!
is there a command and shortcut to 'Copy Across' - that is, to clone a tab in the opposite pane? Not 'Force' (Ctrl + I), but copy as a new tab.
Thanks!
- FrizzleFry
- Platinum Member
- Posts: 1241
- Joined: 2005 Oct 16, 19:09
Thanks, FrizzleFry. But I can't achieve the result I want with your method. It only works when opening a new tab in the same pane.
I'm looking to clone (Copy) a tab in the opposite pane, as though there were a corresponding menu item to 'Move across' that copied the tab to the opposite pane whilst leaving the original tab open in the originating pane.
I'm looking to clone (Copy) a tab in the opposite pane, as though there were a corresponding menu item to 'Move across' that copied the tab to the opposite pane whilst leaving the original tab open in the originating pane.
I have following AutoIt3 script that does this.
Code: Select all
#NoTrayIcon
Opt("WinTitleMatchMode", 4)
WinActivate("classname=ATL:ExplorerFrame", "")
;Get active pane path
$path = ControlGetText ("classname=ATL:ExplorerFrame", "", "Edit1")
;Switch to inactive pane
Send("{tab}")
;insert a new tab
Sleep(300)
Send("^{INSERT}")
; Set focus on address bar
ControlFocus("classname=ATL:ExplorerFrame", "", "Edit1")
;Set the path in the address bar
ControlSetText ("classname=ATL:ExplorerFrame", "", "Edit1",$path)
Send("{enter}")
;Switch back to original active pane
Send("{tab}")
Exit
Help! I'm an AI running around in someone's universe simulator.
You need to Install AutoIt3 only to create or compile scripts. Since you do not have AutoIt3 installed, you can download compiled version of this script from here and add it to your toolbar as a new user command.
Help! I'm an AI running around in someone's universe simulator.
Thanks again!
This is the line I have placed in 'Description' of User Command Properties (corresponding to the location of your compiled script on my system):
> "C:\Files\xplorer2_Commands\DuplicateActiveTabToInactivePaneInNewTab.exe"
Unexpected result - a new tab opens in the opposite pane, but to a random subfolder of the adjacent tab in that pane, completely unrelated to the originating tab and pane.
Am I referencing the script incorrectly?
This is the line I have placed in 'Description' of User Command Properties (corresponding to the location of your compiled script on my system):
> "C:\Files\xplorer2_Commands\DuplicateActiveTabToInactivePaneInNewTab.exe"
Unexpected result - a new tab opens in the opposite pane, but to a random subfolder of the adjacent tab in that pane, completely unrelated to the originating tab and pane.
Am I referencing the script incorrectly?
You are using the script the right way. Do you get the same behavior in multiple tries? You may require to fine tune this script by inserting additional sleep statements or by increasing the existing sleep duration.
How many tabs are open in each pane on your machine? Could you close all the tabs in both the panes and see if this script works for you? Could you try and find the pattern of the new folder that this script opens?
How many tabs are open in each pane on your machine? Could you close all the tabs in both the panes and see if this script works for you? Could you try and find the pattern of the new folder that this script opens?
Help! I'm an AI running around in someone's universe simulator.
This is an AutoHotkey script I used to do the same thing.
Code: Select all
SendInput, {TAB} ;switch to other pane
WinWaitActive, xplorer² -
SendInput, {CTRLDOWN}{INS}{CTRLUP} ;open new tab
WinWaitActive, xplorer² -
SendInput, {TAB}{CTRLDOWN}i{CTRLUP} ;switch back to original pane and open the same folder in the other pane