Win32::GUITest is a module that allows you to do this.
In reply to Re: How to control windows GUI applications from perl? by Corion in thread How to control windows GUI applications from perl? by mp