setcontext
对于window这个对象的其它动作我从字面上都能够理解(比如moveto,click,opencion等),但是setcontext这个动作我不明白它的实质意义.为什么老是会出现setcontext.谁能帮我理解一下!感谢.setcontext的解释
SetContextEstablishes 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.
页:
[1]