In addition to what kcott has already said perhaps Win32::GuiTest or X11::GUITest would be of interest.
In reply to Re: Tool GUI automation by marto in thread Tool GUI automation by sushileo7