[Lazarus] Detecting the start of a service and simulate a click in the yes button of its window

"Arí Ricardo Ody" aro52 at gmx.com
Sat Mar 6 20:40:59 CET 2010


Although I have no idea about where to use "FindWindow" and "Send a key" I suppose they solve my problem. May you develop, please? 

Thanks in advance

Ricardo
----- Original Message -----
From: Zaher Dirkey
Sent: 03/06/10 05:55 AM
To: Lazarus mailing list
Subject: Re: [Lazarus] Detecting the start of a service and simulate a click in the yes button of its window

2010/3/6 "Arí Ricardo Ody" <aro52 at gmx.com>

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.

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?



In short You can make FindWindow then Send a key (y/Return) to this window.
-- 
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100306/3e797339/attachment-0004.html>


More information about the Lazarus mailing list