salehqqqq 0 Posted July 14, 2018 Report Share Posted July 14, 2018 hi i am faceing some issues in thread command i am making script for socialmedia account that have :- * ui box text / open file 1-uesr name 2- pass 4- stats (text) that come from open file and I make a loop for the script that can type text from open file every cycle in loop ( $list total ) now how I can make the script work like this in two user or three or more I mean if I make another ui box for user2 and pass2 and I want the script do the seem action for user2 ( another account) should I use thread command and newbrowser should I but the loop that I make it for text file inside the thread what is the correct steps that should I do Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 14, 2018 Report Share Posted July 14, 2018 You would have the file have the info for all of the accounts. You can use a CSV file for this like so: user1,pass1 user2,pass2 user3,pass3 Then you can load one file and in your thread you can pass each account info to a custom command, like so: define AccountLogin(#username, #password) { } That custom command will store the #username and #password in local variables which are unique to that thread. But you will have to learn more about threading in general probably, I made a video about it once here: Quote Link to post Share on other sites
UBotBuddy 331 Posted July 15, 2018 Report Share Posted July 15, 2018 What HelloInsomnia explains is VERY true and accurate. Watch his video. Local variables are the key to fully grasping Threads. Buddy Quote Link to post Share on other sites
salehqqqq 0 Posted July 20, 2018 Author Report Share Posted July 20, 2018 (edited) hi thank you for explan how thread work , the video it's about creation accounts but my plan to make (( compile )) have username text box password text box and and username 2 password 2..... work like this I can but manually the :- username 1 in his ui text box - pass 1in his ui text box / username 2 ui text box - pass2 ui text box my issue that in the script there is a loop that have commands how I make the script open two browser and log in by user 1 and open other browser log in user 2 ? and how I let the browser do the loop that have commands in separate 1- how to open two browser 2-how let the script know in browser one but the uesrname1 and password 1 and in browser 2 but username 2 , password 2. 3-what should I do to run the loop in the two browsers I mean after log in is separate browser my loop that have commands for clarification I do it but just for one user see the pic Edited July 20, 2018 by salehqqqq 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.