peter.arun has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am right now working on a java application in unix OS. I am using X11::GuiTest module and I want to get all the text displayed on the java application window for further modifications. Can anyone suggest any module(or any functions) that supports this kind of requirement? If this is not possible, is there any way to take a screenshot of the window (i.e converting it into a .jpg or likewise file) and then extracting the text from it. Please suggest modules which will get installed in unix OS. Thanks in advance, Arun
  • Comment on Read the contents of a java application window in unix..

Replies are listed 'Best First'.
Re: Read the contents of a java application window in unix..
by Anonymous Monk on Oct 05, 2007 at 12:41 UTC
    I think Arun is asking for unix platform..and I dont think win32::GuiTest and win32::GuiRobot can be installed in unix platform.
Re: Read the contents of a java application window in unix..
by Corion (Patriarch) on Oct 05, 2007 at 11:25 UTC

    See Win32::GuiTest, and Win32::GuiRobot, which has "image recognition" for window systems that do not use the Win32 native high level calls (like Java programs likely do).

      Hi!! Thanks for the reply.. I am aware of Win32GUI::Test module. but it works only in windows platform. I need a module which works on Unix platform in order to read the contents 0f a java application window... Thanks in Advance Peter

        Oh - sorry, I misread that you were on Windows. For Unix, there is X11::GuiTest and I think you can adapt Win32::GuiRobot to do the "screen decoding" on Unix quite easily.