I'm not familiar with Win32::OLE, but the function to look for is called "setfocus". Hope this helps.
In reply to Re: Win32 Active Window by fglock in thread Win32 Active Window by esr