🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #182

How to accesss buttons and edit fields of a window (foreign application)?

#182
From: #
Date: Tue, 03 Feb 2004 20:22
28 lines
1674 bytes
Hi,

the handle of an open window can be found by

WHandle := FindWindow(nil, 'WindowTitle');

But I could not find solutions to:

- How to find out the handles of  buttons and edit fields on that window?

- How to press and release a button on that window?

- how to replace the text of an edit field (e.g. in the "save as" dialog of
WORD")?


Knowing this it should be possible to "remote control" e.g. the "save as"
dialog of an

application.

Any hint or code example would be helpful (D5).


Thanks in advance,
Markus

Markus.Ehinger@web.de
Technical Details
Message-ID: <bvovsj$cpf$07$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,5ab6a42bd4353275,start
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-02-03 12:22:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "#" <Markus.Ehinger@web.de>
Newsgroups: borland.public.delphi.nativeapi
Subject: How to accesss buttons and edit fields of a window (foreign application)?
Date: Tue, 3 Feb 2004 21:22:35 +0100
Organization: T-Online
Lines: 30
Message-ID: <bvovsj$cpf$07$1@news.t-online.com>
Reply-To: "#" <Markus.Ehinger@web.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 1075839700 07 13103 beIFGPx1Md9csxH 040203 20:21:40
X-Complaints-To: usenet-abuse@t-online.de
X-ID: Gt-S8wZEZe1unOtAkqHEAQ6VapuA3UDLiNZ+HeFjrksw2J1tsfJf4h
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165