Forums
New posts
Search forums
What's new
New posts
Latest activity
Feedback
View Statistics
Members
Current visitors
Buy Sell Trade
WTB
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Technology
Programming
Script to turn off and on system sound on windows laptop, as per schedule
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="raksrules" data-source="post: 2369008" data-attributes="member: 14003"><p>My work laptop has an issue wherein, it will not go to Sleep even if I went to windows icon -> power -> sleep. Due to this, keeping laptop on overnight (but on sleep) was not possible as I would wake up to a dead battery always. In order to mitigate this, I got a vbs script online that can keep the laptop active by sending some keypress like NUM LOCK. Here is the script..</p><p></p><p>[CODE]</p><p>Dim onjResult</p><p></p><p>Set objShell = WScript.CreateObject("WScript.Shell")</p><p></p><p>Do While True</p><p> objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")</p><p> Wscript.Sleep (10000)</p><p>Loop</p><p>[/CODE] </p><p></p><p>This works really well and laptop remains on entire night (connected to a charger but charger is turned off and on in 2 Hour cycles using a wifi switch). </p><p></p><p></p><p>The side effect of this is a popup that comes on screen (usually during night when laptop is not being used, every few days) that tells me that the laptop has not been started in last X days so it is better to restart for stability and all. I can dismiss this message but until I do so, the message will keep coming and will make a sound on laptop. So during the night, if this message comes, it will disturb the person sleeping in the room as the message comes every 30 seconds until dismissed and will make the sound. </p><p></p><p>I want that the system sound on the laptop be turned off at specific time daily (say 10 PM) and start again (say 10 AM) using some sort of script. I cannot install any software as it is work laptop so script is only option. I don't know VB script so I cannot make one myself. </p><p></p><p>Does anyone have a ready script or knows how to make one or some link where someone has posted the script?</p></blockquote><p></p>
[QUOTE="raksrules, post: 2369008, member: 14003"] My work laptop has an issue wherein, it will not go to Sleep even if I went to windows icon -> power -> sleep. Due to this, keeping laptop on overnight (but on sleep) was not possible as I would wake up to a dead battery always. In order to mitigate this, I got a vbs script online that can keep the laptop active by sending some keypress like NUM LOCK. Here is the script.. [CODE] Dim onjResult Set objShell = WScript.CreateObject("WScript.Shell") Do While True objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}") Wscript.Sleep (10000) Loop [/CODE] This works really well and laptop remains on entire night (connected to a charger but charger is turned off and on in 2 Hour cycles using a wifi switch). The side effect of this is a popup that comes on screen (usually during night when laptop is not being used, every few days) that tells me that the laptop has not been started in last X days so it is better to restart for stability and all. I can dismiss this message but until I do so, the message will keep coming and will make a sound on laptop. So during the night, if this message comes, it will disturb the person sleeping in the room as the message comes every 30 seconds until dismissed and will make the sound. I want that the system sound on the laptop be turned off at specific time daily (say 10 PM) and start again (say 10 AM) using some sort of script. I cannot install any software as it is work laptop so script is only option. I don't know VB script so I cannot make one myself. Does anyone have a ready script or knows how to make one or some link where someone has posted the script? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Technology
Programming
Script to turn off and on system sound on windows laptop, as per schedule
Top