fix Emacs: check active window by timer.
fix Emacs: support command prompt.
add RDP