예제 #1
0
 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");
     }
 }
예제 #2
0
        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();
        }