While you're at it, you should also add a note that this will only work if the window is visible, I think. Perhaps you want to double check that.