I'm trying to write an application that will allow my users to click on a button and have Remote Desktop automatically launch and login properly. Remote Desktop is only one of the many applications that I want to be able to do this with and for the other applications, I found the Window that I wanted, and called User32.FindWindowEx in the JNA library to get textfields and buttons to fill in and click. Remote Desktop though is different, it has a "button" that I need to click on in order to get the correct fields to show up, but the button itself doesn't seem to have a HWND.

I've tried just clicking on the parent window at (120, 120) but that didn't work either.

Does anyone have any advice on how to do this?

Name:  hwnd.jpg
Views: 141
Size:  35.1 KB