🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Automating another application with SendMessage

#17440
From: nicolasr
Date: Mon, 24 Mar 2003 22:44
19 lines
1676 bytes
Hi,

I'm trying to automate another application by sending messages to its main
form and child controls like buttons etc. The problem is that many Windows
messages have pointers to structures as WParam/LParam. As far as I know
those pointers are invalid in the address space of the other application, is
this correct?

I found a workaround for some of the controls but now I have to select an
entry in a list view in report style. The messages LVM_FINDITEM and
LVM_SETITEMSTATE both don't work since they require pointers as parameters.

Is there any common workaround for those cases? Or at least something I can
do in this special case with the list view?

By the way, I don't have source code for the other application.

thanks for any ideas,
Nick
Technical Details
Message-ID: <3e7f8a59$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,643e5bac4901b56b,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-24 14:50:07 PST
From: "nicolasr" <nicolasrATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Automating another application with SendMessage
Date: Mon, 24 Mar 2003 23:44:41 +0100
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.133.163.85
Message-ID: <3e7f8a59$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048545881 80.133.163.85 (24 Mar 2003 14:44:41 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!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