Sleep / Pausing processes

Cags
09-03-2003, 05:14 PM
I have created an application in which I use the Sleep API to pause a process for a few moments, however as you will know this pauses the entire program. What I would like todo is pause only that process so that click events on the screen are still processed, but the loop doesn't continue, is there an API for doing such?

MikeJ
09-03-2003, 05:16 PM
Hmm... DoEvents might pause it for a few seconds. It lets Windows 'catch-up' on what it needs to do. It might not be too long of a pause, but it'll let the program catch up with what it needs to do.

You might want to try that, see if it is what you are looking for.
~Mike

Cags
09-03-2003, 05:55 PM
Thanks MikeJ, but I don't think that will work in this situation... Let me elaborate. I'm making a game, based on the Amiga game Squigs (which in turn was based on the SEGA game Columns). After a 'set' is matched and removed I want the code to pause to give the user/player chance to see whats happening, before continuing.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum