Thread

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
This command is a [[Flow Commands|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)
+
This command is a [[Flow Commands|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)''
  
  
Line 13: Line 13:
 
navigate("http://www.google.com", "Wait")
 
navigate("http://www.google.com", "Wait")
 
</pre>
 
</pre>
 +
  
 
Running the script will open a new browser window and navigate to google, while simultaneously navigating to google in the main browser.
 
Running the script will open a new browser window and navigate to google, while simultaneously navigating to google in the main browser.
  
 
The thread command makes the simultaneous running of each command possible.
 
The thread command makes the simultaneous running of each command possible.
 +
  
 
[[File:thread.png]]
 
[[File:thread.png]]

Revision as of 20:19, 20 May 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.google.com", "Wait")


Running the script will open a new browser window and navigate to google, while simultaneously navigating to google in the main browser.

The thread command makes the simultaneous running of each command possible.


File:Thread.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox