Jump to content



Photo

Can't Figure Out How To Reset Browser If Bot Hangs Or Freezes?

reset browser freeze hangs

  • Please log in to reply
1 reply to this topic

#1 myubo

myubo

    Member

  • Members
  • PipPip
  • 13 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 07 February 2019 - 08:35 PM

Have issues with some of my bots hanging freezing.  

 

Was typing to figure out a way to make the bot do an automatic reset browser if the bot doesn't for example finish a loop within 60 seconds.   If the bot freezes/hands on a loop it would automatically do a reset browser and start over so I don't have to manually kill it and restart it.

 

Can I have  in new browser check on the first browser and if its frozen have it reset the both browsers maybe and start from the start?  Or is there another easier way to get this done?


Edited by myubo, 07 February 2019 - 08:36 PM.


#2 pash

pash

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3251 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 08 February 2019 - 08:01 PM

use this https://wiki.ubotstu...i/Reset_Browser

 

thread {
    loop while($true) {
        wait(60)
        reset browser
    }
}
 
 
 
 


New Plugin:: Advanced Facebook | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint
- Advanced Data Text File | Advanced DateTime | Advanced Dialog | Advanced Document | Advanced Google Blogger V3 | Advanced Google Drive | Advanced Google YouTube V3 | Advanced Image | Advanced Video | Advanced Screen and Windows | Advanced Systems | Advanced Ubot 1 | Advanced Ubot 2 | Advanced WordPress | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint

- Advanced Captcha (V3) | Advanced Captcha (V2) (Old) | Create Table From Excel (Lite) | Check Conection | Ubot Enter License | Auto Free Memory
- Working hours GMT+7. i regret sometimes the answer is delayed due to health problems.






Also tagged with one or more of these keywords: reset browser, freeze, hangs

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users