Sample Scripts For UBot Studio Version 4 & 5
Posted by Miriam M-B on 03 September 2011 11:48 AM
**Please keep in mind that if you have both UBot 3 and UBot 4 installed on your computer, you will have to download the sample scripts, open UBot 4, and open the sample file from UBot 4 by going to the file menu and clicking "Open". If you have any issues, concerns, questions, please open a ticket and we'll help you there**
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.
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.
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.
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.
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.
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.