Microsoft has won a patent for an instant messaging feature that notifies users when the person they are communicating with is typing a message .