Jump to content

Dmitrii

Members
  • Posts

    3
  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    Dmitrii reacted to Droidz in Pause/Unpause when an error is encountered in the "Waypoint timed out" log   
    Hello, you can should look like that :
    using System.Threading; using wManager.Plugin; public class Main : IPlugin { private bool _isLaunched; public void Initialize() { _isLaunched = true; robotManager.Events.LoggingEvents.OnAddLog += delegate(robotManager.Helpful.Logging.Log log) { if (log != null) { if (log.Text.Contains("[MovementManager] Think we are stuck")) { robotManager.Products.Products.InPause = true; // new thread to unpause after 5 seconds new Thread(t => { Thread.Sleep(5000); if (_isLaunched) robotManager.Products.Products.InPause = false; }).Start(); } } }; } public void Dispose() { _isLaunched = false; } public void Settings() { } }  
×
×
  • Create New...