raptor 10 Share Posted July 5, 2016 Use case: I am trying to detect when my script is paused from the DreamBot GUI, so I can place a "Paused" overlay on my script. Issue: When I override onPause() in my main class that extends TaskScript, my code never gets executed. This behavior occurs whether I call super.onPause() before my code, after my code, or not at all. Has anyone dealt with this? Am I using the wrong method to hook the pause event? Any help is appreciated! Link to comment Share on other sites More sharing options...
Hopewelljnj 46 Share Posted July 7, 2016 Use case: I am trying to detect when my script is paused from the DreamBot GUI, so I place a "Paused" overlay on my script. Issue: When I override onPause() in my main class that extends TaskScript, my code never gets executed. This behavior occurs whether I call super.onPause() before my code, after my code, or not at all. Has anyone dealt with this? Am I using the wrong method to hook the pause event? Any help is appreciated! I think onPause() may be broken. @Pandemic Link to comment Share on other sites More sharing options...
Mad 86 Share Posted July 7, 2016 you can get around this by running something in another thread that checks to see if the script is paused Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.