webpro 31 Posted January 30, 2014 Report Share Posted January 30, 2014 How can we stop the closing of any IN NEW BROWSER/IN SHARED BROWSER consoles ? For instance, i got a couple of browsers opening independently, to surf certain sites but they al close as soon as nothing happens ? I then added a wait command to see what it would do and it waited the time entered alright but vanished right after the time expired ? How can i make them to stay opened all the time (or until i say to close it, or end it) Can we do this ? Thanks EDITED: Just tried this: wait($true) at the end of my code. It didn't work. set(#forever, $true, "Global") wait(#forever) loop($true) { wait(60) } } didn't work either (above) Quote Link to post Share on other sites
Macster (UBotter Labs) 112 Posted January 30, 2014 Report Share Posted January 30, 2014 Try adding a "loop while" with a wait(1) at the end of your browsers and see if they stay opened... while the condition inside the loop is TRUE then the loop will continuously wait 1 seconds (or the time you want) until it will check again and so on... and so on... if your break the condition then the loop stops and so your browsers... edit: wait($true) = it does nothing because wait it measures time so it has to be a number 1 Quote Link to post Share on other sites
webpro 31 Posted January 30, 2014 Author Report Share Posted January 30, 2014 BINGO THANKS MATE loop while($true) { wait(2) } DAmn I was getting there lol ! Quote Link to post Share on other sites
Macster (UBotter Labs) 112 Posted January 30, 2014 Report Share Posted January 30, 2014 the correct code is similar to this: set(#browser, $true, "Global") loop while($comparison(#browser, "=", $true)) { wait(1) }and to make it work you need to set the #browser variable to something $false, otherwise it will never stop... 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.