<HTML><BODY>
<DIV>I SHOULD have added, when you have the button handle, use sendmessage
or sendmessageEX as per Stephens code in his email.</DIV>
<DIV> </DIV>
<DIV>Jeremy<BR></DIV>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">-----Original
Message-----<BR>From: "Jeremy Coulter" <vss@vss.co.nz><BR>To: "NZ
Borland Developers Group - Delphi List" <delphi@ns3.123.co.nz><BR>
Date: Fri, 19 Aug 2005 14:06:54 +1200<BR>Subject: Re: [DUG] Click a button
in 3rd party app<BR><BR>
<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> </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> </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" <ross@stationplaylist.com><BR>To:
"NZ Borland Developers Group - Delphi List" <delphi@ns3.123.co.nz><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 to click a button in
another application? I can get the window handle by using
FindWindow. What's next?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers,<BR>Ross.</FONT></DIV></BLOCKQUOTE>
</BLOCKQUOTE>
</BODY></HTML>