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" <[email protected]>

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
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to