raptor 10 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!
Hopewelljnj 46 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
Mad 86 Posted July 7, 2016 you can get around this by running something in another thread that checks to see if the script is paused
Recommended Posts
Archived
This topic is now archived and is closed to further replies.