Adding serial postmessage for window