Another fine module for this sort of thing is Win32::GuiTest. You start your script, have it find the window handle of the executable that you wish to interact with, and then feed it keystrokes and/or mouse movements and clicks.
Comment on Re: Using Expect in a ActivePerl envirnoment