Replacement for SetTimer using an external script and Windows Messages.