in reply to Re^3: Read the contents of a java application window in unix..
in thread Read the contents of a java application window in unix..

Hi, I am unable to install Win32::GUIRobot on windows. and can u please tell me how can i do the screen decoding on Unix.
  • Comment on Re^4: Read the contents of a java application window in unix..

Replies are listed 'Best First'.
Re^5: Read the contents of a java application window in unix..
by Corion (Patriarch) on Oct 08, 2007 at 10:33 UTC

    As you don't tell me any details on how the installation of Win32::GUIRobot fails for you, I cannot help you. Win32::GUIRobot needs Prima to be installed, but I can't help you with that.

    For decoding the screen on Unix, I would take the code of Win32::GUIRobot, and rewrite the parts that get a screen image to work with X11 instead of using Prima.

      Hi Corion, Thanks for the advice.. I will follow the instructions and see how it works. Regards Peter
      Hi Corion, I tried to follow your advice, but I could not install Prima in my system (i.e UNIX). Do you know what are all the dependencies for installing Prima? Also, the part of the code in Win32::GuiRobot that grabs a screen image references to functions in Prima module...so I am not able to use the code in Win32::GuiRobot for grabbing the screen. Can you help with this problem? Thanks in advance and awaiting your reply, Peter Arun.

        I already told you:

        ... Rewrite the parts that get a screen image to work with X11.

        For example, under many Unix systems, there is a program called import, which takes a screenshot. Use that program to get the current screen contents and then work with the other code of Win32::GuiRobot. You will need to remove everything that references Prima and replace it with your own code.