Knowledgebase: UBot 4
UBot Studio 4.0: How to Fill a Table (Source Code Included)
Posted by Miriam M-B on 24 November 2011 01:30 PM

 

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)


When you run your script, check the file where you saved your table to, and you will notice that it is populated with your table items. 

Comments (0)
Help Desk Software by Kayako Resolve
ERROR: Domain does not match license key file domain (oldsupport.ubotstudio.com), allowed domains: support.ubotstudio.com, please change the product path to match the domain under Admin CP > Settings > General Settings
This Product will not work properly unless untill that value is changed.

For more information please contact the kayako support at https://my.kayako.com