protected bool setWindowTextThenClickButton(String notUsed) { IntPtr hwndWin; IntPtr hwndButton; IntPtr hwndEditPath; IntPtr hwndEditAddress; hwndWin = ProcessUtils.FindWindow(null, DUMPER_WINDOW_TITLE); if (hwndWin.ToInt32() == 0) { return(false); } hwndEditPath = ProcessUtils.FindWindowEx(hwndWin, new IntPtr(0), DUMPER_EDIT_ADDRESS_CLASS, null); hwndEditAddress = ProcessUtils.FindWindowEx(hwndWin, hwndEditPath, DUMPER_EDIT_ADDRESS_CLASS, null); hwndButton = ProcessUtils.FindWindowEx(hwndWin, new IntPtr(0), DUMPER_BUTTON_CLASS, DUMPER_BUTTON_TITLE); ProcessUtils.SetText(hwndEditPath, this.savePath); ProcessUtils.SetText(hwndEditAddress, this.address); ProcessUtils.PostMessage(hwndButton, ProcessUtils.BM_CLICK); return(true); }