1

I have a windows application that I need to be able to manipulate programatically. The program was written to use version 2 of the .NET framework. Is there any library or method to programatically manipulate the elements of this program (it most likely does not use standard windows forms components). Ideally, I need to be able to simulate mouse clicks and grab strings of text.

Kara
  • 6,115
  • 16
  • 50
  • 57
TheDog
  • 355
  • 3
  • 12

2 Answers2

3

See my post in a thread about sending messages to windows.

With the use of such API functions, you can easily control or alter other windows. Common examples would be maximizing another window, minimizing another window, hiding another window from view, grabbing another window and placing it within your own window (setting its parent,) altering another window's title, altering the text within another window's textboxes (etc.,) sending keystrokes & mouse clicks to a window (or one of its buttons,) running menus within another window, etc.

Community
  • 1
  • 1
TimFoolery
  • 1,895
  • 1
  • 19
  • 29
1

ManagedSpy will let you do this. Since this is a .NET application, you could also (maybe) use Reflection to dynamically instantiate objects from classes in the application, but this wouldn't necessarily be exactly what you're looking to do.

MusiGenesis
  • 74,184
  • 40
  • 190
  • 334