Activity

From UBot Studio
Jump to: navigation, search

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:


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