Article View: borland.public.cppbuilder.nativeapi
Article #5614Send WM-msgs to an app
From: Roland
Date: Thu, 04 Aug 2005 06:53
Date: Thu, 04 Aug 2005 06:53
13 lines
1824 bytes
1824 bytes
Hello, I try to find a way to make sure that my main app never lost the focus, because it is driven by a wheel only which only generates KeyUp and down messages and The Enter msg. Sometimes it may happen that a background app like pcAnywhere grabs the focus and the main app is then not longer accessible. At the moment the main app is started and controlled by a second app,so I can control some start conditions and I can watch the main app if it is alive. My suggestion is to use this second app to send some 'vitual mouse clicks๏ฟฝ to the main app when some other app has stolen the focus. I already obtained the processID of the main app and create the handle using OpenProcess to use the handle in SendMessage. But my main app does not receive these messages. Does anybody know the right way to send some WM_ messages to another app or does someone have another better idea to prevent my app from losing the focus. (The settings of TwaekUIXP do not solve the problem.) Roland
Technical Details
Message-ID:
<42f1bb81$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,faf37b23b2eaa8b1,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Roland" <neubert_nospam_@wst-gmbh.de> Sender: "Roland" <neubert_nospam_@wst-gmbh.de> Reply-To: "Roland" <neubert_nospam_@wst-gmbh.de> Subject: Send WM-msgs to an app Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 84.135.21.237 NNTP-Posting-Host: 207.105.83.66 Message-ID: <42f1bb81$1@newsgroups.borland.com> Date: 3 Aug 2005 23:53:53 -0700 X-Trace: newsgroups.borland.com 1123138433 207.105.83.66 (3 Aug 2005 23:53:53 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail