<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=156453802-19082005><FONT face=Arial 
color=#0000ff size=2>All this juicy information is otherwise being 
lost.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=156453802-19082005><FONT face=Arial color=#0000ff size=2>I get 
a welcome letter each month (Thanks to Stephen the Office Boy and Gary :-), but 
I don't read it :-(</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2>---</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Richard Vowles, Solutions Architect, 
Borland New Zealand</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>email: <A 
href="mailto:richard.vowles@borland.com">richard.vowles@borland.com</A></FONT></DIV>
<DIV align=left><FONT face=Arial size=2>phone: +64-9-9184573</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>cell: +64-21-467747</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>other: MSN <A 
href="mailto:richard.vowles@borland.com">richard.vowles@borland.com</A>, skype: 
rvowles</FONT></DIV>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> delphi-bounces@ns3.123.co.nz 
[mailto:delphi-bounces@ns3.123.co.nz] <B>On Behalf Of </B>Jeremy 
Coulter<BR><B>Sent:</B> Friday, 19 August 2005 2:07 p.m.<BR><B>To:</B> NZ 
Borland Developers Group - Delphi List<BR><B>Subject:</B> Re: [DUG] Click a 
button in 3rd party app<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>I have done this a number of times. take a look at "FindwindowEx"</DIV>
<DIV>This lets you specify a parent handle (in this case your form) to seatch 
for the class or name of the button.</DIV>
<DIV>&nbsp;</DIV>
<DIV>If the button is on another control, you will need to find the handle for 
that first, that then becomes the parent handl, then look for the button.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jeremy</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">-----Original 
  Message-----<BR>From: "Ross Levis" &lt;ross@stationplaylist.com&gt;<BR>To: "NZ 
  Borland Developers Group - Delphi List" &lt;delphi@ns3.123.co.nz&gt;<BR>Date: 
  Fri, 19 Aug 2005 13:54:25 +1200<BR>Subject: [DUG] Click a button in 3rd party 
  app<BR><BR>
  <DIV><FONT face=Arial size=2>Does anyone know now&nbsp;to click a button in 
  another application?&nbsp; I can get the window handle by using 
  FindWindow.&nbsp; What's next?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial 
size=2>Cheers,<BR>Ross.</FONT></DIV></BLOCKQUOTE></BODY></HTML>