in reply to How to 'control' the IE popup window using Perl
A CPAN search of SendKeys quickly shows Win32::GuiTest will solve both of your problems.