Tablacus Explorer Script Reference (Index)

A collection of references for the objects available to Tablacus Explorer scripts.

日本語: index_jp.md

Getting Started

Find by Goal

I want to… See
Get the current view or tab te, FolderView (ShellBrowser), TabCtrl
Navigate to a folder / open in a new tab FolderView (ShellBrowser)
Get the paths of the selected files FolderView (ShellBrowser), FolderItems, FolderItem
Change the folder tree display or root TreeView
Execute drag-and-drop operations on files or folders DropTarget
Receive events (te.OnXxx) te
Call the Win32 API api, Memory
Work with structures and buffers such as RECT / POINT Memory
Show a context menu or execute its commands ContextMenu
Show an open / save dialog CommonDialog
Show a progress dialog ProgressDialog
Load, thumbnail, or save an image WICBitmap
Enumerate a COM collection Enum
Open an HTML page or a sub-window WebBrowser

All References

Basics (global objects)

Reference How to obtain / target Overview
te te The global object used across scripts. Getting controls (te.Ctrl / te.Ctrls / te.CreateCtrl), creating objects, events (te.OnXxx), and constants.
api api (= te.WindowsAPI) Functions centered on the Win32 API (objects, strings, files, shell, windows, menus, GDI, and more).

Views, trees, tabs, and browsers

Reference How to obtain / target Overview
FolderView (ShellBrowser) te.Ctrl(CTRL_FV) The file view (ShellBrowser). Navigation, getting and selecting items, columns / sorting / filtering, and controlling search result views.
TabCtrl te.Ctrl(CTRL_TC) The tab control. Getting, selecting, moving, and reordering tabs; position, size, and style.
TreeView FV.TreeView The folder tree. Display and root settings, selection and expansion, hit testing, and shell change notifications.
WebBrowser te.Ctrl(CTRL_WB) The web browser control embedded in the main window and sub-windows. OnClose and close handling, and passing arguments to sub-windows.

Items and Operations

Reference How to obtain / target Overview
FolderItem FV.FolderItem, etc. A single file, folder, or virtual-folder item. Path and name, and the standard Windows FolderItem members.
FolderItems FV.SelectedItems(), etc. A collection of FolderItem. It also behaves as an IDataObject, so it can be passed to drag and drop and the clipboard.
DropTarget api.DropTarget(item) / FV.Droptarget Object that allows executing drag-and-drop operations (IDropTarget) on files or folders via script.
Reference How to obtain / target Overview
ContextMenu api.ContextMenu() The shell context menu (IContextMenu). Creating menus, executing commands, and related events.
CommonDialog api.CreateObject("CommonDialog") The "Open" and "Save As" dialogs. Filters and folder selection (OFN_ENABLEHOOK).
ProgressDialog api.CreateObject("ProgressDialog") The standard shell progress dialog. Progress bar, text lines, and cancel detection.

Utilities

Reference How to obtain / target Overview
Enum api.CreateObject("Enum", collection) Enumerates a COM collection one element at a time (equivalent to JScript's Enumerator). Can also enumerate member names.
Memory api.Memory() Native memory (structures and buffers). Includes the field list of Win32 structures such as RECT, POINT, and LOGFONT.
WICBitmap api.CreateObject("WICBitmap") Loading, converting, drawing, and saving images (Windows Imaging Component).

Common Conventions

Chapters of Each Reference

te

api

FolderView (ShellBrowser)

TabCtrl

TreeView

WebBrowser

FolderItem

FolderItems

DropTarget

ContextMenu

CommonDialog

ProgressDialog

Enum

Memory

WICBitmap