remarknibor wrote: > That works just fine, thanks. > Is there any way I can have the console window do things while > Notepad is open and being used? At present, while Notepad is open and > active, the console window just waits for the 10 minutes to be up. It > would be nice if I could have the console window display a countdown > of the time left while Notepad is being used.
Sure. Look at the return value of WaitForSingleObject(). You can tell which event took place: Time expired or the person closed the application. If the former, check to see how much time has elapsed and update the display. If the latter, bail. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
