set time_signal.vbs on Windows scheduler
Last active
March 7, 2016 01:53
-
-
Save usk81/f9e001ccf43a8b4bdc9e to your computer and use it in GitHub Desktop.
Time signal like MacOSX for Windows OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var args = []; | |
for(var i = 0; i < WScript.Arguments.length; i++) | |
args.push(WScript.Arguments.Item(i)); | |
var sapi = new ActiveXObject('SAPI.SpVoice'); | |
sapi.Speak(args.join(' ')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\(your-account)\say.js %time:~0,5% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CreateObject("WScript.Shell").Run "C:\Users\(your-account)\time_signal.bat",0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment