Activity

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "This command is a Flow Command. This command is used to split up and describe the various tasks that a bot accomplishes. '''Activity:''' The message that wi...")
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
This command is a [[Flow Commands|Flow Command]]. This command is used to split up and describe the various tasks that a bot accomplishes.
+
This command is a [[Log Commands|Log Command]]. This command is used to split up and describe the various tasks that a bot accomplishes.
  
 
'''Activity:''' The message that will be logged to describe the tasks being accomplished.
 
'''Activity:''' The message that will be logged to describe the tasks being accomplished.
Line 39: Line 39:
  
  
[[File:activity.jpg]]
+
[[File:blactivity.jpg]]

Latest revision as of 14:34, 16 August 2015

This command is a Log Command. This command is used to split up and describe the various tasks that a bot accomplishes.

Activity: The message that will be logged to describe the tasks being accomplished.

The log file for the log command is located in your roaming folder found here: C:\Users\YOUR WINDOWS USERNAME HERE\AppData\Roaming\UBot Studio

The log folder can be located at: C:\Users\YOUR WINDOWS USERNAME HERE\AppData\Roaming\UBot Studio\Log

Dated log .txt log files are created to log each bot's various activities:


[edit] Example

activity("Checking Webpage....")
set(#page were on,$scrape attribute(<id="hplogo">,"alt"),"Global")
if($comparison(#page were on,"=","Google")) {
    then {
        log("Webpage is Google.com")
    }
    else {
        log("Webpage is NOT Google.com")
    }
}
activity("Webpage Check Complete!")


Running the script will log the activity within the debugger and the log file:


2015-02-15 13:50:08 [ACTIVITY] "Checking Webpage...."
2015-02-15 13:50:08 [LOG] "Webpage is Google.com"
2015-02-15 13:50:08 [ACTIVITY] "Webpage Check Complete!"


Blactivity.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox