WINDOW |
|
| Purpose: | Minimize or maximize the current window, restore the default window size, or change the window title. |
| Format: | WINDOW [ MAX | MIN | RESTORE | HIDE | TRAY | TOPMOST | NOTOPMOST | TOP | BOTTOM | /POS=left,top,width,height | /SIZE=rows,columns | /TRANS=n | "newtitle" ] |
newtitle |
A new title for the window |
height |
New height of window |
width |
New width of window |
left |
New position of the left border of window |
top |
New position of the top border window |
rows |
New height of window |
columns |
New width of window |
Usage:
WINDOW is used to control the appearance and title of the current (TCC) window.
Numeric input may be entered in either decimal format (series of digits 0-9) or in hexadecimal format ("0x" followed by a sequence of 0-F hex digits).
If you are running in a Take Command tab window, the MAX, MIN, RESTORE, HIDE, TRAY, TOPMOST, NOTOPMOST, TOP, BOTTOM, and /TRANS options will be sent to the main Take Command window, not the TCC window.
Note: You can specify only one WINDOW option at a time. The different options cannot be combined in a single WINDOW command. To perform multiple operations you must use multiple WINDOW commands.
Options:
Option |
TCC |
Take Command |
Description |
x |
|
Set the window position and size on the desktop. The values are specified in pixels. Left and top refer to the position of the top left corner of the window relative to the top left corner (0,0) of the screen. The width and height values determine the window size. The window may be so sized and positioned that parts of it are beyond the physical area of the display. The / before the keyword is optional. |
|
/TRANS=n |
|
x |
Set the transparency level of the Take Command window. n is an value from 0 (invisible) to 255 (opaque). |
newtitle |
x |
|
Changes the window title. The title text must be enclosed in double quotes. (The quotes will not appear as part of the actual title as displayed.) Setting the title inside a batch file will only change the window title while the batch file is executing. |
MAX |
x |
x |
Expands the window to its maximum size. |
MIN |
x |
x |
Reduces the window to an icon. |
RESTORE |
x |
x |
Returns the window to its default size and location. |
HIDE |
x |
x |
Makes the window invisible. Use RESTORE to make the window visible. |
TRAY |
x |
x |
Moves the window to the taskbar tray. |
x |
|
Specify the TCC screen buffer size. Due to the design of Windows console sessions, you cannot use /SIZE to reduce the size of the screen buffer; it can only be increased. Does not affect window size. |
|
TOPMOST |
|
x |
Keeps the Take Command window on top of all other windows until it closes, or NOTOPMOST is used. (Only valid in a tab window.) |
NOTOPMOST |
|
x |
Allows other windows to overlay the Take Command window (this is the normal state for most windows). (Only valid in a tab window.) |
TOP |
|
x |
Moves the Take Command window to the top of the window order, above all other non-TOPMOST windows. (Only valid in a tab window.) |
BOTTOM |
|
x |
Moves the Take Command window to the bottom of the window order. (Only valid in a tab window.) |