public void RelogChar() { aix3c.WinWaitActive(winTitle); AppendOutputText("Sitting and camping..."); aix3c.Send("{ENTER}/sit{ENTER}"); System.Threading.Thread.Sleep(1000); aix3c.Send("{ENTER}/camp{ENTER}"); System.Threading.Thread.Sleep(50000); AppendOutputText("Pressing enter key..."); aix3c.Send("{ENTER}"); System.Threading.Thread.Sleep(20000); AppendOutputText("Assuming back in world..."); //MemLib.OpenProcess(eqgameID); //might be closed? SetWindowText(progName("WinEQ"), winTitle); }
public static bool WinWaitActive() { return(au3.WinWaitActive(LastWindow, "", 100) != 0); }