in reply to sending keyboard events to windows apps ??
Win32::GUITest has a SendKeys method anongst many other widgets. I find it works quite well.
cheers
tachyon