How to use FindWindowEx and SendMessage/PostMessage?

  • Thread starter Thread starter XP20
  • Start date Start date
X

XP20

Guest
Hi, I'm making a forms app in c# that will press a button in a java application. I have found on how to do it for a Notepad but I don't know how to do it in java. How could I send a "W" key press to a java application? I think I have to change the child but I don't know to what or how to get it.

IntPtr hWndNotepad = FindWindow("javaw", null);

IntPtr hWndEdit = FindWindowEx(hWndNotepad, IntPtr.Zero, "Edit", null);


Thanks!

Continue reading...
 
Back
Top