public void RunJogCommand(string direction, bool goplus, Mach4.IMyScriptObject script) { Script = script; //doJOG(direction, goplus); var t = new Thread(() => doJOG(direction, goplus)); t.Start(); }
public bool RunMach3Command(Mach4.IMyScriptObject script, string command) { try { Script.Code(command); } catch (Exception e ) { MessageBox.Show(e.ToString()); } try { while (script.IsMoving() != 0) { Thread.Sleep(10); } } catch (Exception e) { MessageBox.Show(e.ToString()); } return true; }
private void CheckFeederReady(Mach4.IMyScriptObject script) { while (script.IsActive(INPUT1) != 0) { Thread.Sleep(50); } }
public bool RunMach3Command(Mach4.IMyScriptObject script, string command) { SetCurrentCommandText(command); try { script.Code(command); } catch { } try { while (script.IsMoving() != 0) { Thread.Sleep(10); } } catch { } return true; }