11-09-2010 06:10 AM
11-09-2010 07:10 AM
11-09-2010 07:41 AM - edited 11-09-2010 07:42 AM
I suppose PostDeferredCall can suit your needs: as noted in the help for this function, the function is executed "in the main thread at the next occurrence of GetUserEvent, RunUserInterface, or ProcessSystemEvents", in your case immediately after RunUserInterface is called.