what you're looking for is problably "window_focus" instruction.