Process[] notepads = Process.GetProcessesByName("notepad"); if (notepads.Length == 0) return; if (notepads[0] != null) { IntPtr child = FindWindowEx(notepads[0].MainWindowHandle, new IntPtr(0), "Edit", null); System.Threading.Thread.Sleep(2500); SendKeys.Send("Hi"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)