Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.Run("control mmsys.cpl");
WScript.Sleep(500);
WshShell.AppActivate("サウンド");
WScript.Sleep(500);
var Keystrokes = "{DOWN " + WScript.Arguments.item(0) +"}%{s}{TAB 3}{ENTER}";
WshShell.SendKeys(Keystrokes);
WshShell.Run("restart.bat");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment