1. Take a look at our script references and resources here. Make sure you are using all commands, functions and features as instructed.
2. Please isolate the issue. If you think the issue is in a certain command, feature or function, try to isolate the issue to the commands they are affecting.
Go into your tools menu and check the show errors option. Use the step feature and find where the error occurs exactly. Isolate that code that is causing the issue.
3. Please send a small, concise script that reproduces the issue. The sooner we can reproduce the bug, the sooner we can have it fixed for you.
Please refrain from sending large scripts without following the above steps.
The sooner we can verify, isolate and reproduce the bug, the sooner we can have it fixed for you.
Thanks so much for your cooperation!
]]>
1. Account Creator: Download
This script should create a set of usernames and passwords and save them to a .txt file on your desktop called "Windows Accounts".
Simply change the number of loops to increase or decrease the amount of credentials that are created.
2. Bing Searcher: Download
This script should navigate to bing.com, have you search for a keyword using the UI on top of the browser area, scrape the results of the keyword and save the results to a file on your desktop.
3. Change File Field: Download
This script should navigate to a page with a sample form field for uploading files. The form field is at the bottom of the page. The script should fill the file field with
the file path from the file you specified in the UI open file at the top of the browser area.
4. Get Files (Pro Edition ONLY): Download
This script should go into your desktop folder and grab all the file names in the folder. A list of all the files in your Desktop folder should be saved to the desktop. You can edit the Get files function to have the file name include or exclude the file path to the files.
Uses the Get Files function, which is a Pro edition function.
5. Solving Captcha in V4: Download
This script simply navigate to http://ubotstudio.com/playground/captchaform.aspx and solve the captcha on the page using the manual captcha solving option.
You can experiment by setting up your captcha service in the Tool menu and alternating between manual captcha solving and an automatic captcha solving service.
6. Documents Functions Example: Download
This example uses the document functions commands to grab the url, the meta description, and title of the article located on the page the script navigates to when you click play. The items should be saved to a file on your desktop called "Document Text.txt". Feel free to try the set up on a different page with an article.
7. Url Function: Download
This sample should simply navigate to the website in the navigate command, grab the url and save the url of the current page on in a file called "url.txt".
You can remove the navigate command and simply run the rest of the script on any website to grab the url from the website and save it to a file.
8. Change Proxy Command: Download
This sample should change your ip according to the list of proxies you provided, and navigate to can ip checking website to confirm the IP change.
Simply browse for your list of Ips with the open file command in the UI area, and run the script. The loop should happen according to the number of proxies you have in your file list.
9. Adding a List to a List: Download
This sample script adds a list from file to a list in UBot Studio. Simply browse for your file on the UI, and the file's contents will be added to the list in UBot Studio. You can then use the list to fill fields after the contents have been added.
10. Define command: Download
This sample script demonstrates how to use the define command. In the first tab is define command with is a series of tasks inside it. In the second tab is the custom command we created using the define command. Click "run" on the second tab, it will run the task we set up within the define command. Feel free to add and remove commands to see how it works for you.
11. Looping to Fill a Field with a List: Download
This sample script will create a list based on the file you select on the UI and fill the fields on the sample scripts page with it's contents. Select a file populated with a list from the UI above the browser area, and then click "Run".
12. Looping to Fill a Field with a Table: Download
This sample script will allow you to browse for a CSV in the browse button on the UI, and fill fields with the contents of the first and second column. If you have more columns, simply create another type text command for the field you'd like to fill, insert a table cell function, type the number for the extra column (starts from 0, so the third column in a three column CSV is column number 2) and drag the variable labeled "row" into the section of the table cell command labeled "row".
13. Scraping a Table (Pro Edition Only): Download
This sample script will navigate to a page with a small sample table. It will scrape the table, and save it to a file on your desktop that you will name using the UI text box at the top of the browser. To scrape a different table on the page, right click the scrape table command to edit. Use the element selector to choose a different element within a different table. Click ok to exit and run the script again.
Uses the Scrape Table command, which is a Pro edition command.
]]>Captcha Services Accounts: Allows you to choose either manual captcha solving or choose a service from Bypass Captcha, Decaptcher and Death by Captcha
Start up Page in Options Menu: Allows you to start up page for your bot (Dev Editon Only)
Debugger: Allows you to debug your script for editing and troubleshooting purposes
Code View: allows you to write your script in code form(Pro and Dev Editions Only)
Image Recognition: Allows you to choose an item on a page using image recognition (Pro and Dev Editions Only)
COMMANDS
Browser Commands:
Navigate: Navigates the browser to a url
Download file: Downloads a file
Close Page: Closes the current page within a browser
Load html: displays the given html in a browser
Run javascript: Runs javascript code
Save browser image: Saves a screenshot of the current page
Shell: Runs an executable
Action Commands:
Type text: Types text into a browser
Click: Clicks and element within the browser
Change dropdown: Changes the selected item in a drop down
Mouse over: This will mouse over a specified element
Change attribute: changes any attribute on an html element
Change file field: selects a file form a file field
Focus: changes the browser's focus to a specific element
Scrape table: Scrapes an html table element into a UBot table (Pro and Dev Editions Only)
Save element image: saves the image of an element
Flow Commands:
Pause script: Pauses the script. This is generally used for debugging purposes
Stop Script: Stops the script. This is generally used for debugging purposes
Wait: waits for a specified number of seconds
Wait for element: Waits for a specificied element to sppear or dissapear from a page
Wait for browser event: Waits for a browser event to happen, such as a page being loaded
Return: Exits the current command or function and allows custom functions to return a value
Loop: Runs the contained commands a specified amount of times
Loop while: Runs the contains commands while a specified condition is true.
Thread: Runs the contained commands in a spearate threat from the main script allowing multiple commands to run at the same time. (Pro and Dev Editions Only)
If: Runs the contained commands if the condition is true
Then: Use this inside of an if command to specify which command should run if the condition is true
Else if: Use this inside of an if command to specify another condition to check if the last condition was not true
Else: Use this inside of an if command to specify which command should run if the condition is not true
Define: Defines a custom command or function that can be used in the currect bot.
In new browser: Runs all commands inside a separate web browser in separate windows
Divider: Visually divides up pieces of code to help the visual aesthetics of the scripting window
System Commands:
Save to file: Saves text, lists or tables to a file
Rename file: Renames a file
Move file: Moves a file to a specified location
Delete file: Deletes a file
Copy file: Copies a file to a specified location
Rename folder: Renames a specified file
Move folder: Moves a folder to a specified location
Delete folder: deletes a specified folder
Create folder: creates a new folder at a specified location
Copy folder: Copies a specified folder to a specified location
Data Commands:
Reset account: Resets the account info in the account data function before
Set: Allows you to store a value in a variable
Increment: Adds 1 to a variable
Decrement: Subtracts 1 from a variable
Add item to list: Adds an item to the end of a list
Add list to list: Adds every item in one list tot he end of the other list
Remove from list: Removes and item from a list at a specified position
Set list postion: sets the position of a list which is used by the next list item functions
Clear list: empties the contents of a list and resets it's position to zero.
Create table from file: Allows you to create a table based on a csv file.
Set table cell: Allows you to set a specific cel in a table
Add list to table as column: Inserts a list into a table at a specified location as a column
Add list to table as row: Inserts a list into a table at a specified location as a row
Clear table: empties the contents of a table
Email Commands:
Send Email: sends an email using an smtp server
Connect to Mail Server: connects to an email server
Verify emails: Scans your mail box for verification emails and opens the verification links
Create Table From Emails: creates a table using all the emails in your mailbox
Delete Mail: deletes an email from a mailbox at a specified position
Settings Commands:
Clear cookies: Clears all cookies in the browser
Change proxy: Changes the proxy used in the browser
Set user agent: Changes the user agent sent to websites
Set referrer: changes the referrer sent to websites
Set proxy credentials: sets the username and password credentials for the current proxy
Set website credentials: Sets the username and password credentials for HTTP authentication on a website
Set visibility: Determines whether or not the browser shows what it's doing while your bot or script is running (Pro and Dev Editons Only)
Allow images: Determines whether or not the browser loads external images(Pro and Dev Editons Only)
Allow CSS: Determines whether or not the browser loads external CSS (Pro and Dev Editons Only)
Allow javascript: Determines whether or not the browser loads external javascript(Pro and Dev Editons Only)
Allow flash: Determines whether or not the browser loads external flash swf files(Pro and Dev Editons Only)
UI Commands:
UI text box: creates a text box on the UI panel tied to a specific variable.
UI block text: creates a large text box on the UI panel tied to a specific variable.
UI check box: creates a check box on the UI panel tied to a specific variable.
UI open file: creates an open file field on the UI panel tied to a specific variable.
UI save file: creates a save file field on the UI panel tied to a specific variable.
UI drop down: creates a drop down menu on the UI panel tied to a specific variable.
UI list box: creates a list box on the UI panel tied to a specific variable.
UI stat monitor: creates a stat tracker on the UI panel tied to a specific variable.
UI window: creates a menu item under the settings menu that displays the contained UI
UI button: creates a button on the UI Panel that contains the runs the contained commands when clicked.
UI html panel: allows you to build your own UI with html (Dev Editon Only)
UI splash page: allows you to navigate to a specific url once the bot is loaded(Dev Editon Only)
UI remove branding: removed the "powered by link" on compiled bots(Dev Editon Only)
UI foreground color: changes the foreground color on compiled bots (Dev Editon Only)
UI background color: changes the background color on compiled bots(Dev Editon Only)
UI tab color: changes the tab color on compiled bots(Dev Editon Only)
__________________________
FUNCTIONS
Qualifier Functions:
Search page: Returns whether or not the specified text is present on the page
Contains: Returns whether or not the specified text contains the search text
Exists: Returns whether or not the specified text exists on the current page
True: Returns True
False: Returns false
Both: Returns true if both conditions are met and true
Either: Returns true if either conditions are met and true
Not: Returns true if the condition is not true
Comparison: Compares two values and returns the results
Math Functions:
Eval: Returns the results of executing a piece of javascript
Rand: Returns a random number between the minimum and maximum values
Account Functions:
Account Data: Returns a piece of Account Data generated by UBot
Email Functions:
Email total messages: Compares two values and returns the results
Email subject: Returns the subject of the email at the specified position
Email recipient: Returns the recipients of the emails at a specified position
Email from: Returns the sender of the email at the specified position
Email date: Returns the date received of the email at a specified position
Email body text: Returns the body text of the email at the specified position
Email body html: Returns the body html of the email at the specified position
Variable Functions:
List total: Returns the total number of items in a list
List position: Returns the position of a specific list item
Random list item: Returns a randomly selected item from a list
Next list item: Returns the list item at the list's current position and increments the list's position (used with the set list position command)
Previous list item: Returns the list item at the list's current position and decrements the list's position
List item: Returns a list item at a specified position
Read file: Returns the contents of a file
List from file: Returns a list made up of each item within a file.
List from text: Returns a list of items by separating the text into separate items based on a delimiter
Text from list: Returns text based on connecting each list item by a connector
Subtract lists: Returns the first list with al items from the second list removed from it (Pro and Dev Editons Only)
Sort lists: Returns the original list sorted in ascendign or descending order (Pro and Dev Editons Only)
Common list items: Returns a new list containing the common items between the first and second list (Pro and Dev Editons Only)
Table cell: Returns the value of a table cell
Table total rows: Returns the number of rows in a table
Table total columns: Returns the number of columns in a table
Browser Functions:
Solve captcha: The function will either prompt the user to type in a CAPTCHA, or send the CAPTCHA to a service to solve it
Page scrape: Returns the text scraped from the currect page between two specified pieces of text
Scrape attribute: Returns the value of s specified element on a selected element
Element offset: If an element selected matches more than one element on a page, this allows you to return one of those elements
Element parent: Returns the parent of an element
Element child: Returns the child of an element
Element sibling: Returns the sibling of an element
Text Functions:
Spin: Returns a spun version of a given text
New line: Returns a line break
Nothing: Returns an empty value
Replace: Returns the original text with all instances of the search text replaced by the replace text
Replace regular expression: Returns the original text with all instances of the pattern text replaced by the replace text
Change text casing: Returns the text with the casing fo the text changed
Trim: Returns the text with all leading or trailing blank spaces removed
Substring: Returns the specified part of an original string
Random text: Returns a random alpha numeric string of user define length, including upper and lowercase text.
Pad text: Returns a new string that is padded with a character
Text lenght: Returns the tottal length of text
Insert text: Returns the original text with another piece of text inserted at a specified position
Find index: Returns the index of a piece of text with the original text
Append line to text: Returns the original tetx with a new line of text appended at the end of the original text
Find regular expression: Returns a list fo all matches of the regular expression in the original text
Document functions:
Url: Returns the current url
Title: Returns the current page title
Meta description: Returns the current meta description
Meta keywords: Returns the current meta keywords
Document text: Returns the current document text
System Functions:
Confirm: displays a yes/no confirmation box that returns true if yes is chosen
Prompt: Prompts the user to respond and returns the text that was typed into the function
Date: Returns the current date
File Functions:
Special Folder: Returns the path of a special system folder
Get Files: Returns the list of all files within a given directory(Pro and Dev Editons Only)
]]>The browser does not load. It does not display any of the webpages you try to navigate to. Here is something to try that might remedy the situation.
1.Find and Delete the folder named %APPDATA%/ubot studio (open windows explorer and paste the path into the address bar)
2.. Re-install UBot Studio 4. (request a download link by opening a ticket or refer to your welcome email)
If these three steps do not help you, let us know at support.ubotstudio.com and we'll be able to help you from there.
The Add List to List command
This command should be used in instances where you are:
- Adding a list from a file to a list in UBot
- Scraping a list of items from a page into a list in UBot Studio
- Creating a list using the list from text command.
If the tasks your are performing will be returning a list of items, you will be using the add list to list command to hold those items in UBot Studio for later use.
The Add Item to List command
This command should be used in instances where you are:
- Adding one item to an already populated list
If the tasks your are performing will be returning only one item, you will be storing that item in the add item to list command. This command is often used to add to an existing, already populated list.
if you have any questions about the use of any of the commands, feel free to let us know by opening a ticket.
]]>
Go to under Variable functions and click and drag the $list from file function into the List to Add field within the Add List to List command. After you have loaded your proxies into a list, you will go under the Settings Commands and select the Change Proxy Command.
That command will go inside your account creation loop. You will then go to the Variable Functions again and find the $Next List Item function.
Click and drag the next list item function into the field in the Change Proxy command labeled “Proxy”.
Click OK. Go under Data Commands again and choose the Set List Position command. Under position, type the number zero.
Choose the list you created for the proxies. Put the Set List Position Command right before your account creation loop, outside of the loop.
Place the everything, with the exception of the Set List Position command, the Add to List command, the Clear List command (to clean and repopulate the list every time you run your bot) and the clear cookies command (to clear your cookies every time you loop and switch proxies), within a loop command (You can find the Loop command in your tool box under the Flow commands).
Do not type in the number of times you want the loop to run in the loop command under number of cycles. Go under your variable functions and select the $list total function.
Choose the list you created for the proxy list from the drop down menu in the list total fucntion. This means that the loop will run equal to the amount of items in your proxy list.
Your script should look like this in the end.
]]>
1. Your update progress bar has stopped progressing. A link under the progress bar sent you here.
-Go to your task manager and make sure all instances of UBot Studio.exe or UBotBrowser.exe are closed.
After doing so, click the "retry" option for the update progress bar.
2. Your updating process was interrupted (computer crashed or restarted, your internet connection was interrupted, etc)
Please submit a ticket at support.ubotstudio.com and we will send you a url to the updated version of UBot 4.
You will then need to uninstall all traces of UBot 4 Beta from your computer and reinstall Ubot 4 Beta using the url we provided.
Please let us know by opening a ticket at support.ubotstudio.com if you are still having issues.
]]>
Do you want to use a file on your computer to .csv create a table in UBot Studio? Are you using a table already populated and saved onto your desktop? Drag the Create Table from File command into your scripting window. Click the browse button within the command and browse for the csv or .txt file that contains your table. After finding and choosing the file, name your table, and click ok. You table has now been created.
If your delimiter in the file with the table (the symbol or digit that separate table items from each other) is a comma, then you are ready to go. If your table delimiter is a semi colon, colon, or any other symbol, you will need to specify that to UBot Studio. The way to do that is by clicking on “Bot” in UBot Studio, next to the Tools Menu, and clicking on Untitled Bot Properties. You can change the delimiter from a comma to a semi colon or anything else you need to specify it as.
There are many ways to work with information in UBot Studio, and this is one of the many ways to do so. |
You can practice inputting the contents into a field at ubotstudio.com/playground
-Go under the Data Commands within your Tool Box. Find the Add List to List command and drag the command into your script.
- After dragging the command into the scripting area, give your list a name under Starting List. Under the Advanced tab within the command, decide if you want the list to Delete Duplicates (Yes or No). Go under the Variable functions, and find the $list from file function. Drag it under the text box under “List to Add:”
- Click the small browse button in the list from file function and select the file you are trying to create a list with. Click OK.
-On the simple form practice page, pick a field to fill your list item with. Click and drag the field into your script. When the type text command appears, go under the variable functions and select the $ list item function.
Drag the function into the place that says “Text to Type”. Select the list you created from file, and click ok until all commands closed. When you run the bot, the field will be filled with an item from the list you created from file.
You can put the process in a loop command if you want to repeat the process.
Instead of typing in the number of loops you want the loop to run, go under the variable functions and select the $list total function. That means you are telling the loop to run according to how many items are in the list.
Don’t forget your wait commands to slow down the process and to allow tasks to finish before moving on to others within the script!
]]>1. Drag in a Loop command (Flow commands) and set the number of cycles in the loop command to 10.
2. Drag in a reset command from the Data commands. Leave the drop down on default "Any", or choose a gender if you think it is applicable.
3. Drag in an add item to list command. The list you will be adding the items to on the first add item to list command will be called usernames.
4. Under "Item to add", drag in the Account Data function (Account functions). Select the username option from the drop down for that function. Click ok to finish editing n the add item to list command.
5. Drag in a second add item to list command. The list you will be adding the items to on the second add item to list command will be called passwords.
6. Under "Item to add", drag in the Account Data function (Account functions). Select the passwords option from the drop down for that function. Click ok to finish editing the add item to list command.
7. Click ok on the loop command to finish editing. You loop should look like the following code:
loop(10) { reset account("Any")
add item to list(%usernames, $account data("Username"), "Delete", "Global")
add item to list(%passwords, $account data("Password"), "Delete", "Global")}
8. Drag in an add list to table as row command (Data commands).
9. Name your table under "Table". In this case, type in "credentials". Starting row should be 0, and starting column should be 0 also. The list we are adding from the drop down under "List to Add" is the list called "Usernames". Click ok to finish editing the command.
add list to table as column(&credentials, 0, 0, %usernames)
10. Drag in a second add list to table as row command (Data commands).
11. Click the drop down under "Table"and select the table called "credentials". Starting row should be 0, and starting column should be 1. The list we are adding from the drop down under "List to Add" is the list called "Passwords". Click ok to finish editing the command.
add list to table as column(&credentials, 0, 1, %passwords)
12. Go under system commands and select the save to file command. Browse for the .txt or .csv file you want your table saved to.
In this example, it is:
save to file("C:\\Users\\LillyT\\Desktop\\my credentials.txt", &credentials)
Click ok to finish editing the command.
Add clear list and clear table commands above the loop command to clear the list and tables before each run.
The entirety of your script should look like the code below:
clear table(&credentials)
clear list(%passwords)
clear list(%usernames)
loop(10) { reset account("Any") add item to list(%usernames, $account data("Username"), "Delete", "Global") add item to list(%passwords, $account data("Password"), "Delete", "Global")}
add list to table as column(&credentials, 0, 0, %usernames)
add list to table as column(&credentials, 0, 1, %passwords)
save to file("C:\\Users\\LillyT\\Desktop\\my credentials.txt", &credentials)
Set Table Cell: This command allows you to set the specific table cell that you would like to work with. If you would like to insert an item into a specific row and column within a table, then this is the command you would use. If a table does not exist while you are setting the cell, it will be created within UBot Studio.
Create Table from File: This command creates a table with a file on your computer (a .txt file for example).
So for example, if I have a .txt file containing the following:
When we use this file to create a table, column zero ranges from Barbados to Cape Verde, while column 1 ranges from Bridgetown to Praia. There are rows ranging from 0 to 7, starting with Barbados, Bridgetown, and ending with Cape Verde, Praia.
There are four functions that deal with tables in UBot Studio:
$Table Cell: This function returns the item in a specific row and column.
$Table Total Rows: The function returns the total number of rows within a table. This can be used with the loop command in automating the filling of fields with the contents of a table.
$Table total columns: The function returns the total number of columns within a table. This can be used with the loop command in automating the filling of fields with the contents of a table.
The function will return False if the file path does not exist.
For example:
set(#file exists, $file exists("C:\\Users\\LillyT\\Documents\\myfile.txt"), "Global")
If the file exists, the variable "#file exists" will return "true". To test the function, simply replace the file path with a file in your folder that exists.
If the file does not exist, then the variable "#file exists" returns "false". To test the function, simply replace the file path with a file in your folder that does not exist.
The $folder exists function returns True is a folder exists.
The function will return false if the folder does not exist.
For example:
set(#folder exists, $folder exists("C:\\Users\\LillyT\\Documents\\Random Files"), "Global")
If the folder exists, the variable "#folder exists" will return "true". To test the function, simply replace the file path with a folder that exists.
If the folder does not exist, then the variable "#folder exists" returns "false". To test the function, simply replace the file path with folder that does not exist.
]]>