|
Title | OpenTabs |
File Name | OpenTabs.txt |
Description | Open tabs in the current panel |
Author | Vochomurka |
Parameters | Tab_file, Keep_Flag |
Plugin called | win, childwin |
Icon | |
Version | 1.2 |
Updated on | 27.9.2017 |
args Tabs, Keep local hwnd = win.handle("c=TTOTAL_CMD") local Focus = win.getfocus() if(ctrl) Keep = 1 win.sendmessage(hwnd, 0x400+51, 3001, 0) win.postmessage(hwnd, 0x400+51, 3009, 0) if(Keep) do keys {down 8} else keys {down 9} endif keys {enter} wait.for(1500, Focus != win.getfocus()) Focus = win.handle(win.getfocus()) wait.for(200) win.settext(Focus, Tabs) for(childwin.gettext(Focus) != Tabs) endfor keys ^{enter} if(Keep) win.sendmessage(hwnd, 0x400+51, 3007, 0)
The OPENTABS Tab_File introduced in version 6.0, as it seems, makes this script really obsolete. But this command can't be called from outside Total Commander (for example, from CloseAllTabs script).
First script parameter is a tab file name. It should be located in the default tab path (the TabDir key in the wincmd.ini file). If this file is located somewhere else, the full path must be specified.
Second parameter is 0 or absent, if you wnt to replace tabs. So as to keep existing tabs, set this parameter equal to 1, or keep the Ctrl key pressed at the script execution.
Main Page | Total Commander | PowerPro |