diff --git a/platform/win32.json b/platform/win32.json new file mode 100644 index 0000000..6f2f4d7 --- /dev/null +++ b/platform/win32.json @@ -0,0 +1,7 @@ +{ + "play": { + "command": "start /min ./node_modules/sfx/sound.vbs", + "options": { + } + } +} \ No newline at end of file diff --git a/platform/win64.json b/platform/win64.json new file mode 100644 index 0000000..6f2f4d7 --- /dev/null +++ b/platform/win64.json @@ -0,0 +1,7 @@ +{ + "play": { + "command": "start /min ./node_modules/sfx/sound.vbs", + "options": { + } + } +} \ No newline at end of file diff --git a/sound.vbs b/sound.vbs new file mode 100644 index 0000000..4a05952 --- /dev/null +++ b/sound.vbs @@ -0,0 +1,7 @@ +Set Sound = CreateObject("WMPlayer.OCX.7") +Sound.URL = WScript.Arguments.Item(0) +Sound.Controls.play +do while Sound.currentmedia.duration = 0 +wscript.sleep 100 +loop +wscript.sleep (int(Sound.currentmedia.duration)+1)*1000