Thread
From UBot Studio
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 11: | Line 11: | ||
} | } | ||
} | } | ||
− | navigate("http://www. | + | navigate("http://www.bing.com", "Wait") |
</pre> | </pre> | ||
Revision as of 18:12, 20 September 2013
This command is a Flow Command. This command runs the contained commands in a separate thread from the main script allowing multiple commands to run at the same time. (Professional and Developer Editions Only)
Example
thread { in new browser { navigate("http://www.google.com", "Wait") wait(3) } } navigate("http://www.bing.com", "Wait")
Running the script will open a new browser window and navigate to google, while simultaneously navigating to bing in the main browser.
The thread command makes the simultaneous running of each command possible.