cybero 0 Posted July 22, 2017 Report Share Posted July 22, 2017 I have created one bot to post on social media . I have set thread spawn and compiled it to open 5 browser at the same time for 60 times . But the 5 browser choose the same variable on each of them . I have made the $random list item and add list to list but every time it keeps on choosing the same one for 5 browsers . After the browser completes the job and when they reopen they choose different ones but again the 5 browser all same variable. Any ideas on how can I fix this.?I have tried to but the "$random list item" and "add list to list" inside and outside the "in new browser" but still it doesnt work Quote Link to post Share on other sites
pash 504 Posted July 23, 2017 Report Share Posted July 23, 2017 post your code. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 24, 2017 Report Share Posted July 24, 2017 I wouldn't use thread spawn but I did try to replicate what you said and it does randomize it for me. That being said I'd use the older way of multithreading because thread spawn has always been an issue. clear list(%numbers) set(#num,1,"Global") loop(20) { increment(#num) add item to list(%numbers,#num,"Don\'t Delete","Global") } clear list(%rng) thread spawn(20,5) { add item to list(%rng,$random list item(%numbers),"Don\'t Delete","Global") wait(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.