Window
Window-cmd
Brief Introduction
This command creates, opens, closes, activates, and performs several actions on graph and worksheet windows.
Syntax:
window option
- The option switch determines the action to be performed.
Options:
Options to Activate/Hide/Maxmize/Minimize
| Option
|
Description
|
| -a
|
Set winName as the active window
|
| -af
|
Flash active window n times with millisecond timeout
|
| -an
|
Activate the winName notes window
|
| -b
|
Open or set as active, the specified window
|
| -ch
|
Hide the active window and change the view mode
|
| -h
|
Hide the active window but do not change the view mode
|
| -hc
|
Hide the active or named window and change the view mode
|
| -hn
|
Hide or show a Notes window
|
| -i
|
Minimize the active window
|
| -ia
|
Minimize the active window and force activation of the previously active window
|
| -in
|
Minimize the winName notes window
|
| -r
|
Restore current window from being maximized or minimized.
|
| -z
|
Maximize the active window
|
| -zn
|
Maximize the winName Notes window
|
Options to Delete/Close
| Option
|
Description
|
| -c
|
Delete the winName window
|
| -cw
|
Delete the winName window, wildcard supported
|
| -ca
|
Close the winName window
|
| -cwa
|
Close the winName window, wildcard supported
|
| -cd
|
Close the workbook and delete all the data
|
| -cwd
|
Close the workbook and delete all the data, wildcard supported
|
| -cn
|
Close the winName notes window without prompting
|
| -cp
|
Post a message to close the winName window
|
| -cwn
|
Close the winName notes window without prompting, wildcard supported
|
Options to Create/Duplicate
| Option
|
Description
|
| -d
|
Create a duplicate of the active window and make the new window active
|
| -da
|
Create a duplicate of the active window keeping the current window active
|
| -dg
|
duplicate the current graph window and convert to OpenGL
|
| -n
|
Create a new window from scratch and name it winName
|
| -t
|
Create a new window from the template file
|
| -t WF
|
Create a worksheet from the template file and enumerate winName
|
| -th
|
Create a hidden new window from the template file
|
| -ti
|
Create a minimized new window from the template file
|
| -tu
|
Create a new window from the template file but allow Undo
|
| -tx
|
Open a new Excel workbook
|
Options to Name
| Option
|
Description
|
| -r
|
Rename windowName with the given newName
|
| -ra
|
Open the Rename dialog box
|
| -rl
|
Specify a window label and set the window to display the label in the window title
|
| -rn
|
Rename notesWindowName Notes window with the given newName
|
| -rp
|
Update windowName with the Short Name or/and Long Name preset in the graph template
|
| -w
|
Temporarily set the active window to winName
|
Options to Arrange
| Option
|
Description
|
| -s C
|
Window system call to cascade all windows
|
| -s ch, -s cv
|
Tile all windows in a certain sequence and then cascade each column
|
| -s ct
|
tile and cascade all windows
|
| -s T
|
Window system call to tile all windows
|
| -s th, -s tv
|
Tile all windows in sequence
|
Other Options
| Option
|
Description
|
| -aw
|
Go to the URL web page
|
| -e
|
Activate a graph window and delete all data plots
|
| -g
|
Get the path and the template file name into %A
|
| -ge
|
Get template file extension into %B and get the path and the template file name into %A
|
| -l 0
|
Put the active window to the end of the Window menu window list
|
| -m
|
Merge all graph windows
|
| -ma
|
Prompt with a dialog box before merging all graph windows
|
| -o
|
Execute the specified script for the named window
|
| -oa
|
Execute the specified script for the named hidden window
|
| -os
|
Add the hidden map boundary worksheet to the root folder
|
| -ppc
|
Call Project Explorer page preview cleanup function
|
| -w
|
Restore normal operation before using the command again
|
| -z0
|
Fit page to window size
|
See Also:
System.Display, Clr, Page