Hello,
I'm trying to write an add-on for some program (which is written in .net v4.0.30319), but I cant figure out of to invoke functions of this other program.
For example, lets say the other 3th party program is this:
private void btnSomeButton_Click(object sender, EventArgs e)
{
MessageBox.Show("This button has been pressed.");
}
Fist of all, to hook with the other progress I know I can either use
[DllImport("User32.dll")]
public static extern Int32 FindWindow(String lpClassName,String lpWindowName);
Process.GetProcessesByName()
which is "better"?
next, given the first example of "private void btnSomeButton_Click"
* How do I even find the behind code/event of the button is btnSomeButton_Click
- I've been messing around with Microsoft Spy++ (which comes with VS, and with Reflector, but the program I'm "debugging" is rather big.
* How to I invoke that btnSomeButton_Click event from my own application? (additionally, how with parameters)
Thanks in advance, hope my question is understandable...