in reply to Application for 'Quality Assurance'

If you wish to test a Windows application then you should have a look at Win32::GuiTest. It allows you to send keystrokes and mouse events to Windows applications.

An impressive module.

Update: Just to clarify, Win32::GuiTest uses SendKeys as described by clemburg below.