Click on button in another program - FindWindow, C#
问题 I'm trying to create a program that will be able to control another program (in Windows). I found this code: // Get a handle to an application window. [DllImport("USER32.DLL", CharSet = CharSet.Unicode)] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); // Activate an application window. [DllImport("USER32.DLL")] public static extern bool SetForegroundWindow(IntPtr hWnd); //button event private void button1_Click(object sender, EventArgs e) { // Get a handle to