v_ladimir 2 Posted January 16, 2017 Report Share Posted January 16, 2017 (edited) Hello.Can somebody help me?I need fast threads loop (number) loop while condition threads (how many) 5 for example thread count increment threads define {get requests} or navigate url thread count decrement When I used this construction it's doesn't workI need fast threads and I have only 1 thread with fast increment and fast decrement.How I can solve it? ui drop down("Threads Count","1,2,3,4,5",#thread_count) ui block text("Keywords",#keywords) clear list(%keywords) set(#used_threads,$plugin function("Threads Counter.dll", "threads counter", "reset"),"Global") add list to list(%keywords,$list from text(#keywords,$new line),"Delete","Global") loop($list total(%keywords)) { loop while($comparison($plugin function("Threads Counter.dll", "threads counter", "read"),">=",#thread_count)) { wait(1) } set(#used_threads,$plugin function("Threads Counter.dll", "threads counter", "increment"),"Global") thread { Search Google($next list item(%keywords)) set(#used_threads,$plugin function("Threads Counter.dll", "threads counter", "decrement"),"Global") } wait(0.1) } define Search Google(#key) { in new browser { navigate("https://www.google.com","Wait") } } I need it for get requests Edited January 16, 2017 by v_ladimir Quote Link to post Share on other sites
abbas786 78 Posted January 16, 2017 Report Share Posted January 16, 2017 try this one ui drop down("Threads Count","1,2,3,4,5",#thread_count) ui block text("Keywords",#keywords) clear list(%keywords) set(#used_threads,$plugin function("Threads Counter.dll", "threads counter", "reset"),"Global") add list to list(%keywords,$list from text(#keywords,$new line),"Delete","Global") loop($list total(%keywords)) { set(#used_threads,$plugin function("Threads Counter.dll", "threads counter", "increment"),"Global") Search Google($next list item(%keywords)) wait(0.2) loop while($comparison($plugin function("Threads Counter.dll", "threads counter", "read"),">=",#thread_count)) { } } define Search Google(#key) { thread { in new browser { navigate("https://www.google.com","Wait") wait(5) set(#used_threads,$plugin function("Threads Counter.dll", "threads counter", "decrement"),"Global") } } } Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted January 17, 2017 Report Share Posted January 17, 2017 or thisThread Docta 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.