![]() |
|
Title | LoadTabs |
File Name | OpenTabs.txt |
Description | Load specific tab set (*.tab) |
Author | Vochomurka |
Parameters | Tab_File, Keep_flag |
Plugins Called | win, childwin |
Icon | depends on tabs |
Version | 2.0 |
Updated on | 08.06.2009 |
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 {up 5} else keys {up 4} endif keys {enter} wait.for(1500, Focus != win.getfocus()) Focus = win.handle(win.getfocus()) win.settext(Focus, Tabs) for(childwin.gettext(Focus) != Tabs) endfor keys ^{enter} if(Keep) win.sendmessage(hwnd, 0x400+51, 3007, 0)
Attention! This script does not work in Total Commander 7.5 pb1 and pb2!
Script does the same that internal commands APPENDTABS and OPENTABS do. First parameter is a full name of tab file (e.g. "c:\Program Files\Total Commander\Office.tab"). Second parameter being equal to "1" or 1 is similar to the APPENDTABS command. Or, you can press and hold the Ctrl key at the script execution.
If second parameter is "0", 0 or absent, tabs will be replaced.
Script is used by CloseAllTabs and ViewTabFile scripts.
![]() |
Main Page |
![]() |
Total Commander |
![]() |
PowerPro |
![]() |
![]() |