Ubotx 1 Posted August 27, 2016 Report Share Posted August 27, 2016 Hello, I have a problem using the Ubot studio 5.x Thread spawn feature. I have a txt file with different accounts eg: account1@account.com:hiiiiiiiiiiiiaccount2@account.com:123456 So the problem i'm having is that i want the program to use different accounts in a new browser. unfortunately ubot is using the same account each time Here is my code: I want to use the next account on ubot studio. Each account have to be different in new browser. for example: Browser 1: account1@account.com:hiiiiiiiiiiiiBrowser 2: account2@account.com:123456 ui open file("Accounts",#accounts) clear list(%logininfo) add list to list(%logininfo,$list from file(#accounts),"Delete","Global") set list position(%logininfo,0) thread spawn($list total(%logininfo),2) { set(#global_account,$next list item(%logininfo),"Global") in new browser { navigate("https://ubotstudio.com/site/playground-simple-form/","Wait") wait for browser event("Everything Loaded","") type text(<username field>,$find regular expression(#global_account,".+(?=\\:)"),"Standard") type text(<password field>,$find regular expression(#global_account,"(?<=\\.+"),"Standard") wait(1000) } } Thanks! Quote Link to post Share on other sites
pash 504 Posted August 27, 2016 Report Share Posted August 27, 2016 ui open file("Accounts",#accounts) clear list(%logininfo) add list to list(%logininfo,$list from file(#accounts),"Delete","Global") set list position(%logininfo,0) thread spawn($list total(%logininfo),2) { in new browser { navigate("https://ubotstudio.com/site/playground-simple-form/","Wait") wait for browser event("Everything Loaded","") set(#global_account,$next list item(%logininfo),"Local") type text(<username field>,$find regular expression(#global_account,".+(?=\\:)"),"Standard") type text(<password field>,$find regular expression(#global_account,"(?<=\\.+"),"Standard") wait(30) } wait(0.1) }move & set to Localset(#global_account,$next list item(%logininfo),"Local") addwait(0.1) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.