Article View: borland.public.cppbuilder.nativeapi
Article #9925Re: How to click a button in another program?
From: TerryC
Date: Mon, 07 Jun 2004 13:38
Date: Mon, 07 Jun 2004 13:38
16 lines
1488 bytes
1488 bytes
"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote: >You should be sending a BN_CLICKED notification to the dialog >window itself instead of simulating a button press. For >example: I implemented your example, and it works... but only if I drag the window of the application after it sends the message. Otherwise, the target dialog stays up. (???) Any idea what would cause that? Is it possible that Microsoft has the dialog watching for a mouse click, and only a real mouse click will work? ...but "Click Yes" works, so there has to be a way. -Terry
Technical Details
Message-ID:
<40c46fee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40bf8884$1@newsgroups.borland.com> <40bf8f94$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6be234126fe720da X-Google-Attributes: gid10cc67,public From: "TerryC" <terryc.dont_spam_me@sweetwaterhsa.com> Sender: "TerryC" <terryc.dont_spam_me@sweetwaterhsa.com> Reply-To: "TerryC" <terryc.dont_spam_me@sweetwaterhsa.com> Subject: Re: How to click a button in another program? Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 63.250.179.198 References: <40bf8884$1@newsgroups.borland.com> <40bf8f94$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <40c46fee$1@newsgroups.borland.com> Date: 7 Jun 2004 06:38:54 -0700 X-Trace: newsgroups.borland.com 1086615534 207.105.83.66 (7 Jun 2004 06:38:54 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail