in reply to (Windows) insert text at cursor in non-owned window
You may find Win32::GuiTest helps. Look for SendKeys.