LoadBar

Title LoadBar
File Name LoadBar.txt
Description Load button bar with given name
Author Vochomurka
Parameters button bar name (for example, "D:\Utils\TotalCmd\PanelView.bar")
Plugins Called win, childwin, clip
Icon depends on button bar
Version 4.0
Updated on 13.07.2009
args Path
clip.save
clip.clear
clip.set(Path)
wait.for(clip.get == Path)
local hwnd = win.handle("c=TTOTAL_CMD")
win.postmessage(hwnd, 0x400+51, 498, 0)
wait.for(1500, win.handle("c=TBUTTONCHANGEDLG"))
local Hand = win.handle("c=TBUTTONCHANGEDLG")
*keys {enter}
wait.for(500)
clip.paste
clip.clear
clip.load
*keys {enter}
wait.for(activewindow(Hand))
local Button = childwin.handle(Hand, 12)
win.postmessage(Button, 0x00F5, 0, 0)
*keys {tab}{enter}

Comments:

Command OPENBAR button_bar_name introduced in version 7.0, does the same. But this command cn't be executed from outside Total Commander, for example, from another script.


Main Page Total Commander PowerPro