Man-wai, That is by design and you need to have focus on the target window first using an API call. Setting to foreground window doesn't actually set focus, it simply puts the window to the top of the Z order.
Dave -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Man-wai Chang Sent: 13 March 2012 08:22 To: [email protected] Subject: Re: win32api SendMessage() Do you have a solution that need not use SetForegroundWindow()? Microsoft's chinese input methods doesn't seem to set the foreground window before dumping text into the target window. I saw no flash of window title bar. On Mon, Mar 12, 2012 at 11:21 PM, Dave Crozier <[email protected]> wrote: > Another method you can use is below: -- .~. Might, Courage, Vision. SINCERITY! / v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3) /( _ )\ http://sites.google.com/site/changmw ^ ^ May the Force and farces be with you! [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

