The Save Script commands are applicable to almost all of the platforms. Some additional commands are shown in Messages that can be sent to platform windows. In particular the Report command lets you access the display surface to control appearance details such as window zooming, scrolling, and so on. For example, to close an outline node for a report, you first obtain a reference to the Display Box tree, subscript to navigate to the outlineBox, and then send it the close message:
obj << message
Send(obj, message)
Sends a message to a platform object.
obj << message << message...
obj << {message, message, ...}
Sends a series of messages (in order, left to right) to the platform object.
obj << ( child << message )
Sends a message to a child object within a platform object.
Keeps output from a report from displaying on-screen. With Fit Model, both the model window and report are suppressed.
Changes the report title to string. The By variable is appended to the title when necessary.
Note: If automatic recalc is on, you should use wait(0) commands to let the triggers to take effect and do the recalculation.
obj<<Redo Analysis
obj<<Save Script to Data Table
obj<<Save Script to Report
obj<<Save Script to Script Window
obj<<Save Script for All Objects
x = obj<<Get Script
obj<<Data Table Window
obj<<Close Window
Closes the window identified by the obj, typically a platform surface.
obj<<Move Window(x, y)
obj<<Show Window(1)
obj<<Zoom Window
obj<<Scroll Window(x, y)
obj<<Scroll Window({x, y})
Scrolls the window x pixels to the left and y pixels down from the current position; negative coordinates go right and up. If the coordinates are a list in braces { }, they are absolute coordinates. The window scrolls to the point x pixels from the left and y pixels from the top.
obj<<Bring Window To Front
obj<<Size Window(x, y)
Resizes the window to x pixels wide by y pixels high.
obj<<Maximize Window
obj<<Minimize Window
obj<<Print Window
obj<<Report
Returns a display box reference for the report in the platform window. See Display Box Object References in Display Trees for a discussion. TopReport goes to the top display box, and is useful for BY groups or other cases when several platform reports are in one window.
obj<<Journal Window
Almost all platforms support the BY argument in the launch command, so By is not documented separately for each platform. See BY Group Reports, for a general discussion.
You can use a Title command across all platforms, which replaces the standard title. For example,
If automatic recalc is on, you should use wait(0) commands to let the triggers take effect and do the recalculation.