|
setcontext的解释
SetContext
Establishes the context window for all Object commands that follow.
During playback, Robot locates the specified window. If the window is the active window, it remains active. If the window is not the active window, Robot takes one of these actions:
?If parameters$ is an empty string ("") or contains Activate=1, Robot makes the window the active window.
?If parameters$ contains Activate=0, Robot will not make the window the active window.
?If recMethod$ does not contain the State=Disabled qualifier, Robot makes the window the active window.
Setting the context window defines an internal state for Robot. If this command fails during playback (for example, if the specified window cannot be found), an error is logged, but playback continue regardless of the playback option for script command failures.
The context for all Object commands that follow is assumed to be the current context window. For example, when Robot plays back a Command button command, it assumes the button is in the current context window. |
|