Saturday, 15 September 2012

batch file - Volume decrease program (win7) -


Usually when I go to sleep, I leave my speaker and I leave my music, but After about 30 minutes, the music gets a lot, so I have to get up and reduce it ... (I am using foobar2000, if she helps)

ID wants to know Is there any program, which will be implemented for example 30min and the volume is low, is it possible? (And then probably will continue to do that for every 5 minutes the volume reaches 0?)

Thank you in advance to all,

<

< P> It is possible, but you need either third-party utility, or Windows scripting host (VBSScript or JScript). In the Windows scripting host language, use WshShell.SendKeys for the volume down (0xAE).

Save it from the .bat extension and run it.

  @if (@CodeSection == @ batch) @theno off cscript / nologo / e: jscript "% ~ f0" geto: EOF @end // End batch part / start jscript chimer ware OSH = WSH Crete object ('Wscript shell'); 25 min early sleep WSH.Sleep (25 * 60 * 1000); // After 10 loop iterations, the volume is probably 0. (var i = 0; i & lt; 10; i ++) {// Other 5 (ISH) minutes WSH Sleep (5 * 60 * 1000 - 10000); WSH.Echo ('Decreasing quantity ...'); For a period of 10 seconds, press 5 times more for (var j = 0; j & lt; 5; j ++); {If (j) WSH.Sleep (2500); OSH.SendKeys (String.fromCharCode (0xAE)); }}  

(Based on.)


No comments:

Post a Comment