Re: java.awt.Robot for popup windows



On Mar 14, 7:36 am, Alex.From.Ohio.J...@xxxxxxxxx wrote:
I'm trying to use Robot to automate some work.

What work?

..So far it's fine except
sometimes JOptionPane

What JOptionPane? Is this something in code that
is directly controlled by you, or do you just have
a binary?

...produces popup window and Robot doesn't know
about it (as well as of possible new buttons on this window). Is there
way to recognize such dynamically created windows (on focus) and
buttons on them for the Robot?

Failing direct access to the code, one way to
recognise changes in the GUI is to take occasional
screenshots and compare them. There are almost
certainly better ways to approach this if you
also control the code that is the subject of the
screenshot.

--
Andrew T.
PhySci.org
.