0

I have an Windows Application running on my PC , this application list all connected servers on our farm . This application have manual process (more than one step ) to do one action per server ,, The steps are as the following (These steps are done for each one of the servers listed) :

  • Select one server then click right on the mouse then choose one option.
  • The selected option will open a new window above the parent application window.
  • Then click on button.

What I need is to build a new C# application that acts/simulate as the above application with ability to do that action automatic for all select servers from the list .. I hope its clear now ,,

Please help me ..

1 Answers1

1

If the application you want to attach has a UI, You can use UI Automation and Win32 API to manipulate some functinallity.

Try this starting points:

How to I get the window handle by giving the process name that is running?

Get the handle of a window with not fully known title. (C#)

http://www.csharphelp.com/2006/08/get-current-window-handle-and-caption-with-windows-api-in-c/

using C# and UI Automation to grab contents of unknown control-type

Good luck

Community
  • 1
  • 1
Omri Btian
  • 6,499
  • 4
  • 39
  • 65