private void ProSearch(object sender, EventArgs e) { try { int pId = ProcessHandler.GetProcess("GDMO"); ProcessHandler.GetMyWindow(nowPId); } catch (Exception exp) { int resp = (int)MessageBox.Show("Some thing went wrong.", "ERROR"); } }
static void Main(string[] args) { var process = ProcessHandler.GetProcess(Known.Nox); //testBringToFront(process); //testKeysForeground(process, Key.A, Key.B, Key.C, Key.D); //testScreenshot(process); //testGetWindowRect(process); testClick(process); //testKeysBackground(process, "a"); Console.ReadKey(); }