public static void Go(String s) { FoundComboHwnd = (IntPtr)0; FoundButtonHwnd = (IntPtr)0; EnumChildWindows(MonitorThread.HandledHwnd, EnumChildWindowsCallback, (IntPtr)0); COMBOBOXINFO info; info = new COMBOBOXINFO(); info.cbSize = Marshal.SizeOf(info); GetComboBoxInfo(FoundComboHwnd, ref info); String x = WindowMessageClass.GetControlText(info.hwndEdit); x = Path.GetFileNameWithoutExtension(x) + s + Path.GetExtension(x); WindowMessageClass.SetControlText(info.hwndEdit, x); WindowMessageClass.ClickControl(FoundButtonHwnd); }