Examples of stopAllScripts()


Examples of org.rsbot.script.internal.ScriptHandler.stopAllScripts()

    final ScriptHandler sh = bot.getScriptHandler();
    final Map<Integer, LoopTask> running = sh.getRunningScripts();
    if (running.size() > 0) {
      final int result = JOptionPane.showConfirmDialog(this, "Would you like to stop the script?", "Script", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
      if (result == JOptionPane.OK_OPTION) {
        sh.stopAllScripts();
        bot.getMethodContext().web.unloadWebScripts();
        updateScriptControls();
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.