Perfect, Thx Richard
I should have picked up on the WinWait property.

btw for the ones with dutch OS's the name of the window is "Messenger-service" and on english OS's "Messenger service" don't ask me why.