Victor B.
Lake Forest, CA
Jun 14, 2011
93
Posts
Re: ATEasy timer implementation?
Hi Alex,
The ATimer control can be added to any form. You can configure it using the Properties Editor to fire an event every X milliseconds. The OnTimer() event which is fired can be used to synchronize the execution of your tests.
I have attached an example. In the example, two forms are loaded: CountdownForm and MainForm. The CountdownForm has a countdown variable 'f_lCountdown' which counts down from 10 seconds. The ATimer control 'tmrCountdown' fires the OnTimer() event every 1000 milliseconds. When the countdown variable reaches 0, the OnTimer() event calls the form procedure CountdownComplete() which updates the MainForm's label. Please review the example and feel free to use what you can in your application.
Regards,
Victor Brode
File Attachment:
TimerForm.rar