🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17019

Re: Finding Windows

#17019
From: Ed Mulroy [TeamB]
Date: Mon, 14 Apr 2003 13:05
20 lines
2242 bytes
I don't know if those buttons are separate windows or are just painted as if
they were.  You are trying to control a different program.  If you can see a
window in that program which is associated with the button you want, then
you can send it a message.  To help you see how the windows are arranged and
for help in locating the window I suggested that you use WinSight32 or Spy.
If they cannot show a window for the button then there may not be one.  The
alternative may be to move the mouse over the button and generate a mouse
click.  This has its own problems.  For instance if the program or your
program has captured the mouse then it won't be able to move there.

The net result is that there is no functionality built into Windows to
guarantee that you can control another program.  If you want to do that you
will have to sneak a peek at what the program is doing and try to subvert
its activities to achieve your goals.  I cannot give a cookbook recipe which
is guaranteed to work on a random program.

.  Ed

> Keneth Wagner wrote in message
> news:3e9a80ef@newsgroups.borland.com...
Technical Details
Message-ID: <3e9ab23e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e9540f0@newsgroups.borland.com> <3e959b94@newsgroups.borland.com> <3e96ad0d@newsgroups.borland.com> <3e96ae95$1@newsgroups.borland.com> <3e9a80ef@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,56e464a3a8a5bbaa
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-14 06:12:50 PST
From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e9540f0@newsgroups.borland.com> <3e959b94@newsgroups.borland.com> <3e96ad0d@newsgroups.borland.com> <3e96ae95$1@newsgroups.borland.com> <3e9a80ef@newsgroups.borland.com>
Subject: Re: Finding Windows
Date: Mon, 14 Apr 2003 09:05:54 -0400
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3e9ab23e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050325566 24.74.175.102 (14 Apr 2003 06:06:06 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail