---
title: "sendKeys 模拟关机"
author: "tof.j"
date: "2008-10-18T11:00:15Z"
tags: []
slug: "sendkeys"
draft: false
lastmod: "2008-10-18T11:00:15Z"
id: 254601
url: "https://tof-j.iteye.com/blog/254601"
---

var WshShell = new ActiveXObject("WScript.Shell");

WshShell.SendKeys("^{ESC}");

WshShell.sendKeys("U");

WshShell.sendKeys("U~");