<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title></title><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><style type="text/css">p { margin:0px; padding:0px; }</style></head><body style='background-color:rgb(255, 255, 255);background-image:none;background-repeat:repeat;background-position:0% 0%;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;padding-top:5px;padding-bottom:5px;padding-left:5px;padding-right:5px;'><p style="font-family:Verdana;"><font size="1">Although I have no idea about where to use "FindWindow" and "Send a key" I suppose they solve my problem. May you develop, please? </font></p><p style="font-family:Verdana;"><br /></p><p style="font-family:Verdana;"><font size="1">Thanks in advance</font><span></span></p><p id="__paragraph__1267904455000" style="font-family:Verdana;"><br /><font size="1"><span></span></font></p><p id="__paragraph__1267904455000" style="font-family:Verdana;"><font size="1"><span>Ricardo<br /></span></font></p><p style="font-family:Verdana;"><font size="1"><p> </p><p></p><blockquote type="cite" face="Verdana" class="quote" style="font-size:12px;"><p>----- Original Message -----</p><p>From: Zaher Dirkey</p><p>Sent: 03/06/10 05:55 AM</p><p>To: Lazarus mailing list</p><p>Subject: Re: [Lazarus] Detecting the start of a service and simulate a click in the yes button of its window</p><p> </p><div><div> <div class="gmail_quote">2010/3/6 "Arí Ricardo Ody" <span><<a onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','aro52@gmx.com');" href="#">aro52@gmx.com</a>></span><br /><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex;"> <div style="margin:0px;padding:5px;background-color:rgb(255, 255, 255);background-repeat:repeat;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:12px;"> <p style="font-family:Verdana;"><font size="1"> </font></p> <p style="margin-bottom:0cm;">I would like to know if it's possible to make a program to detect if a service has started in windows. If affirmative this service shows a window and I must to simulate a click on the “yes” button of this same window, e.g, the program will think that someone click yes in the windows it shows when it starts.</p> <p style="margin-bottom:0cm;"><br /></p> <p style="margin-bottom:0cm;">Is it possible to do a program with Lazarus or FPC that solves this problem? If affirmative may someone send me an example of how to do this?</p> <p style="margin-bottom:0cm;"> <br /></p> <p style="margin-bottom:0cm;"><br /></p> </div> </blockquote> <br /> </div>In short You can make FindWindow then Send a key (y/Return) to this window.<br />-- <br />Zaher Dirkey<br /> </div></div></blockquote></font></p><p><font size="1"> </font></p><font size="1"></font><p></p></body></html>