Chezzyk 0 Posted November 18, 2016 Report Share Posted November 18, 2016 Hello, here is my bot: set headless browser("Off") navigate("https://www.xxx.com/login","Wait") wait for browser event("Page Loaded","") wait(2) click(<image="___IMAGE___7___IMAGE___">,"Left Click","No") ui text box("Total Loops:",#total loops) ui text box("name",#name) ui text box("pass",#pass) clear list(%neupdatovany) ui stat monitor("Total Loops:",#total loops) ui stat monitor("Loop:",#row) set(#row,0,"Global") wait(2) ui open file("xxx adresy",#adresa) create table from file(#adresa,&adresy) wait for browser event("Page Loaded","") wait(2) type text($element offset(<username field>,1),#name,"Standard") type text($element offset(<password field>,2),#pass,"Standard") wait(2) click(<name="rem">,"Left Click","No") wait(1) click(<image="___IMAGE___6___IMAGE___">,"Left Click","No") wait for browser event("Page Loaded","") wait(3) set headless browser("On") loop(#total loops) { navigate($table cell(&adresy,#row,0),"Wait") set(#soucasnadresa,$url,"Global") if($either($exists(<innertext=w"* days ago">),$exists(<innertext="1 month ago">))) { then { } else { add item to list(%neupdatovany,#soucasnadresa,"Don\'t Delete","Global") } } increment(#row) } save to file("C:\\Users\\Administrator\\Desktop\\xxx\\xxx.txt",%neupdatovany) I would say its pretty simple, but it runs pretty slow. Problem is not my PC or my internet speed, also speed of the site should not be problem, because it is one of the biggest sites in the world which I'm sure has great servers. Other bots runs pretty fast and I tested it on my home PC as well as VPS. Yet it is still very slow, What can I do to make my bot run faster except using headless browser? When I turn off wait for browser event("Page Loaded","") it does not work as I need so I do not know what can I do now, I tried to make everything as simple as possible. Quote Link to post Share on other sites
luis carlos 94 Posted November 18, 2016 Report Share Posted November 18, 2016 Try V4.2.20 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 18, 2016 Report Share Posted November 18, 2016 must you click by image? You can also use threading. Quote Link to post Share on other sites
pash 504 Posted November 19, 2016 Report Share Posted November 19, 2016 1. Avoid click by image2. Customize wait time or use http://wiki.ubotstudio.com/wiki/Wait_For_Element 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.