判断输入是否为回车键

$b=$host.UI.RawUI.ReadKey()
$b.VirtualKeyCode -eq "13" #回车键Code为13

posted on 2014-11-20 13:07  momingliu11  阅读(1413)  评论(2编辑  收藏  举报