in reply to Re^5: How to close the default browser in perlin thread How to close the default browser in perl
For simply sending keystrokes, there also is Win32::GuiTest.