private void button12_Click(object sender, EventArgs e) { IntPtr maindHwnd = FindWindow(null, "Inspector"); if (maindHwnd != IntPtr.Zero) { //IntPtr panel = FindWindowEx(maindHwnd, IntPtr.Zero, "TPanel", null); IntPtr childHwnd = FindWindowEx(maindHwnd, IntPtr.Zero, " TPanel", "Connect"); if (childHwnd != IntPtr.Zero) { SendMessage(childHwnd, BM_CLICK, IntPtr.Zero, IntPtr.Zero); // Send a message from the button } else { textBox3.BackColor = Color.Yellow; textBox3.Text = "エラー"; } } else { textBox3.BackColor = Color.Yellow; textBox3.Text = "エラーメッセージボックスありません"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)