I have a C# application, that sends WM_SETTEXT messages to some edit boxes in different desktop applications. For this purpose a user of the application has a tool like Spy++ to determine handles of edit boxes selected for sending WM_MESSAGE. There are some edit boxes in Java desktop application, that must be treated in the same way.
The question is, if is there any way to resolve this problem window application to Java application.
Thanks for any answer.
解决方案
You can''t send a message ''like'' WM_SETTEXT to a Java app, Java either uses the windows framework on Windows, or I suspect you''re screwed. I''d have expected Java on Windows to use the windows framework, you can use Spy++ to tell if this is true or not. If it''s not, then I doubt you can do it at all.
Certainly, Spy++ cannot see controls inside Java application.