shaoun1000 0 Posted November 8, 2015 Report Share Posted November 8, 2015 Hi,I am completely new to UBot. I have standard license for now. What i am trying is: 1. I will navigate to a website in main browser.2. I will take a shared browser and navigate to another website. This browser must kept open.3. In main browser i will scrape a text and store it in a variable.4. I will switch back to the shared browser and paste the variable using type keys.5. Then i will do some other steps in shared browser. I do not know how to do it. I can process steps in main browser then can open a shared browser and do other steps. But it does not provide the solution. I must open two browser at the same time. The main browser will generate the text needed for shared browser. Then paste the text in shared browser and then the rest of the steps will be performed in shared browser. Please guide me. Thanks in advance. Quote Link to post Share on other sites
shaoun1000 0 Posted November 8, 2015 Author Report Share Posted November 8, 2015 Hi,I am sure this is a noob question. 11 views 0 reply. Is this possible at all. Please help. Thanks. Quote Link to post Share on other sites
Bot-Factory 602 Posted November 8, 2015 Report Share Posted November 8, 2015 Hi. It's actually not a noob questions. But it's something you have to actually code. There are multiple ways to do that. So there is no simple and easy solution. But you can use a loop while command command to keep the shared browser option. Check a special variable for true. And set that variable to true when you want to continue in the shared browser. That's the basic process.Dan Quote Link to post Share on other sites
shaoun1000 0 Posted November 8, 2015 Author Report Share Posted November 8, 2015 That's a great solution. But without executing the first command does ubot execute the 2nd command? I am going to try this: (I do not have ability to script or view source, so i will explain in my way) Navigate (http://a.com) Set Variable to False In New BrowserNavigate (http://b.com) Loop while Variable=FalseFill Variable 1 from main browserDo other stuff In Main browserFill a textFill another textPress SubmitScrape text into variable 1Set Variable=True Will it work? Because there is no thread in there. Please help. Thanks. Quote Link to post Share on other sites
Bot-Factory 602 Posted November 8, 2015 Report Share Posted November 8, 2015 That's a great solution. But without executing the first command does ubot execute the 2nd command? I am going to try this: (I do not have ability to script or view source, so i will explain in my way) Navigate (http://a.com)Set Variable to False In New BrowserNavigate (http://b.com)Loop while Variable=FalseFill Variable 1 from main browserDo other stuff In Main browserFill a textFill another textPress SubmitScrape text into variable 1Set Variable=True Will it work? Because there is no thread in there. Please help. Thanks. No, without threads it will only execute one thing at a time.And threads only comes with higher versions of ubot. So with your ubot license, you can't do what you try to do. There might be another solution, but to answer that we would have to know exactly what you try to do. PS: Ubot Files are ZIP Files. You can open them with Winzip or Winrar. And open the *.uscript files. There you will see the ubot code. CheersDan Quote Link to post Share on other sites
shaoun1000 0 Posted November 8, 2015 Author Report Share Posted November 8, 2015 Yes dan. You are correct. That is not working. But anyway i got it working in the following way: Create a new ubot projectNavigate to a websiteFill a textfill another textsubmitcreate a file with the result in a folderClose browser Create another projectNavigate to a websiteLoop While $FileExists (The file created from the first project)If file found copy its content and forward. It is working fine. The only issue is if i need to change anything i can not do that from one single ubot window. I have to save those in a separate file. Anyway its working. And i am begining to love ubot. Though it is not possible to upgrade my ubot due to high price. But threading seems to be a good option to have. I wish ubot team add threading to standard license. Thanks. 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.