Re: time waits
- Posted by Euman <euman at bellsouth.net> May 21, 2001
- 350 views
or use PeekMessage until the message changes then proceed. I wasnt following close Kat, sorry. if the condition is mouse or key related PeekMessage will hold you in a loop until a button is depressed or a key is up by it's self. And, you could concievably use SendMessage in conjunction with sleep in a PeekMessage loop until your specified time is up. Euman ----- Original Message ----- From: "Matthew Lewis" <matthewwalkerlewis at YAHOO.COM> To: "EUforum" <EUforum at topica.com> Sent: Monday, May 21, 2001 10:11 Subject: RE: time waits > > > > > -----Original Message----- > > From: Kat [mailto:gertie at PELL.NET] > > By the way, it says winmain takes two > > arguements, so i argued with it twice, but it won't stop > > saying that, no matter > > how much i argue at it. Must i use a winmain window if all i > > want is a timer? > > You could probably get around opening a window by setting up your own event > loop (see eventLoop in win32lib), but it's probably easier to hide the > window when it opens, if you don't want to see it. If you're just going to > be calling sleep() and then doing other things, you may not need a window. > If you actually want to use a windows timer, then you'll need to attach it > to a window. > > A timer sends a message to its window when it goes off. You have to have > your event loop set up to handle the messages sent by windows. > > Matt Lewis > > > > >