IntPtr appHandle = FindWindow(null, "Untitled - Notepad"); if (appHandle == IntPtr.Zero) { MessageBox.Show("Specified app is not running."); return; } SetForegroundWindow(appHandle); System.Threading.Thread.Sleep(500); SendKeys.SendWait("^a");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)