local hwnd = win.handle("c=TTOTAL_CMD") local Panel = ifelse(tc.active(hwnd) == "left", 8, 7) local fh = file.open(arg(1), "r") local Config = "d:\winnt\wincmd.ini" if(fh <= 0) do messagebox("ok error", "File not opened", "FILE plugin error") quit endif local Str, i, Hand, Tabs global TMLB = childwin.handle(hwnd, "TMyListBox", Panel) global Counter = win.sendmessage(TMLB, 0x0190, 0, 0) local Total = win.sendmessage(TMLB, 0x018B, 0, 0) if(Total == 1) do messagebox("ok error", "At least two files must be in panel", "ABLV Script") quit endif if(not Counter) do messagebox("ok error", "At least two files must be selected", "ABLV Script") quit endif if(Counter != Total) do Panel = ifelse(Panel == 8, 2, 3) Tabs = childwin.handle(hwnd, "TMyPanel", Panel) Tabs = childwin.handle(Tabs, "TMyTabControl") i = win.sendmessage(Tabs, 4868, 0, 0) win.postmessage(hwnd, 0x400+51, 501, 0) wait.for(1500, activewindow("c=TFindFile")) *keys {del} Hand = win.handle("c=TFindFile") Str = childwin.handle(Hand, 39) win.sendmessage(Str, 0x00F5, 0, 0) for(not win.gettext(childwin.handle(Hand, 32))) endfor Str = childwin.handle(Hand, 35) win.sendmessage(Str, 0x00F5, 0, 0) wait.for(1000, i != win.sendmessage(Tabs, 4868, 0, 0)) win.sendmessage(hwnd, 0x400+51, 523, 0) endif v = vec.create(Counter) if(v == 0) do messagebox("ok error", "Vector not created", "VEC plugin error") quit endif for(i = 0; i < Counter; i++) Str = file.readstring(fh) if(Str) v[i] = Str endfor file.close(fh) Str = ini.get(Config, "Configuration", "Viewertype") if(Str == "1") do keys {F3} else keys +{F3} endif