WendellM #1 Interesting - and useful - question. In the absence of an actual command, perhaps this will do:Repeat Until Not PollEvent()since PollEvent() removes events from the queue and returns Null if there aren't any left. It seems to do the job.