eBook Maestro  

AppWindow object

The object with properties and functions for manipulating the Application Window.
Addressing the AppWindow object:

window.external.AppWindow

Functions

Eval(Script, Where)

Evaluate JavaScript code in the eBook, where Script specifies the JavaScript code, Where specifies the browser of the eBook for evaluating the code.

Call: window.external.AppWindow.Eval(Script, Where);

Return value: no.

Note: The Where must be one of the following values:
0 - Main Panel
1 - Left Panel
2 - Search Bar
3 - Control Bar

EvalOnExit(Script, Where)

This function is identical to Eval except that it sets the script that will be auto-executed on eBook termination.

Call: window.external.AppWindow.EvalOnExit(Script, Where);

Return value: no.

Note: This function will block the termination. You must include the window.external.ControlBar.ExitExec() function in the Script to terminate the application.

Properties

WinCaption

Call: window.external.AppWindow.WinCaption;

Allows to read/change the caption of the application window.