Skip to content

Instantly share code, notes, and snippets.

@jutememo
Last active October 8, 2015 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jutememo/3260858 to your computer and use it in GitHub Desktop.
Save jutememo/3260858 to your computer and use it in GitHub Desktop.
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