2 Replies Latest reply: Apr 26, 2012 11:14 AM by morgalr RSS

    How to read windows?

    904094
      Hi,
      I am not sure whether this is the right place to put out this question, but I couldn't find any relevant place to put this out.

      How can I read the general windows which open on my computer using Java? I am not talking about AWT or Swing window but let's say a notepad/dialog box of windows is open at my machine & I want my java program to read the notepad or a dialogue box which is controlled by windows.

      Any thoughts?

      Thanks,
      Riha.
        • 1. Re: How to read windows?
          DrClap
          You can't use Java to steal information from other applications. At least not pure Java. You might be able to do it by having Java call some operating-system API which can access the windows of other applications.

          However this is the sort of thing typically done by malware. What's driving your need to spy on other applications?
          • 2. Re: How to read windows?
            morgalr
            901091 wrote:
            ...I want my java program to read the notepad or a dialogue box which is controlled by windows.

            Any thoughts?
            Sure, don't use Java to do it. Windows has a host of products designed specifically to interoperate with Windows products--take advantage of them, or get really good at JNI if you must use Java.