Bu konu kilitlenmiştir.
Creative Speaker t40 and t50 series auto off fix
Wanted to post this here since it took a bit to get working but now that it is my speakers don't auto turn off when the pc is in use. Made a batch file with the following code:

:again
start wmplayer C:\Users\Go\Music\WakeupHum.wav
timeout /t 4
taskkill /F /IM wmplayer.exe
timeout /t 300
goto again



But this ran in the foreground and launched the program every 5 minutes to play the sound (thus preventing everything including display and computer from going to sleep) so I did some research and found vbs script files can play it without loading anything in the foreground.

Download the vbs and updated wav here
https://sabercathost.com/e91u/WakeupHum.vbs
https://sabercathost.com/e91v/WakeupHum.wav

Borrowed some of this after testing multiple wrong ways to do it, make a text file and change the .txt to .vbs, save it and edit it, paste in the following code:

Dim oPlayer
Set oPlayer = CreateObject("WMPlayer.OCX")

oPlayer.URL = "C:\Users\Go\Music\WakeupHum.wav"
oPlayer.settings.volume = 100
oPlayer.controls.play
While oPlayer.playState <> 1 ' 1 = Stopped
WScript.Sleep 100
Wend

oPlayer.close
WScript.Quit
quit



This assumes you have your sound file located at the linked url (just change Go username to yours and drop the wakeuphum.wav in your music folder) and that you have windows media player installed.

Save the vbs file in your documents folder

The sound file is linked above, link to it via oPlayer.URL in your script, this will play an inaudible tone that the speakers pick up on and prevents sleep mode.

Now to make it play every 5 minutes.

See help image for win 10 here
https://ibb.co/NKNG9c4

Load task scheduler, click task scheduler library, under action menu click create task.

Call it wakeuphum or something, click triggers and add At log on, edit so that 'Repeat task every' is checked with 5 minute interval and repeat forever, this will ensure it starts with your computer and runs frequently enough to prevent them going to sleep.

Under 'actions' click 'run a program' and link to the .vbs file you made earlier.

As mentioned below - "when you're creating the task, you need to go to the last tab "Settings" and uncheck "Stop the task if it runs longer than:" if you like to keep your computer up and running. The default is 3 days and then it will stop the task if you don't uncheck it"

Make sure your version of windows is selected in the general tab at the bottom drop menu.

Click ok to save changes and reboot to enable the script. Set windows volume above 25% for best results. So far my speakers haven't gone to sleep and I've left them for a while a couple times to test. Also tested in win 10.

(edit: added another quit statement to prevent multiple app buildup, upped frequency of sound file to 20khz as per thundas suggestion, updated to make better, re-uploaded files, added image help file, tested in win 10, added volume setting, re-uploaded files to better server)
En son oobymach tarafından düzenlendi; 6 Şub 2021 @ 9:24
< >
6 yorumdan 1 ile 6 arası gösteriliyor
Doesnt work on T40 Series II. WakeupHum.wav doesnt wake them up, tested a couple of times. Windows volume is full, speakers volume half way.

Edit: Okay, I managed to create a .wav file myself that actually works. So anyone wondering heres how:

1. Download and install Audacity
2. Enable Stereo Mix on your computer
3. Set recording on Audacity to use Stereo Mix
4. Turn off all possible sounds your programs might be causing. Stereo Mix records straight from the soundcard, so if youre not playing anything it records silence
5. Make atleast 5 second recording of nothing, 8 tops. Its not exact science.
6. Highlight the track, then choose Generate -> Tone: Sine, with 20000Hz, amplitude 1, click OK
7. Effect -> Fade In. Do the same for Fade Out
8. File -> Export Audio, 16bit Wav
8. And voila, just replace the file that OP gave you with that and actually works, remember to use the same filename so you dont have to edit the script.

Also I dont know why OP chose three different triggers for the Task Scheduler, works just fine with "At log on".

Also OP didnt mention but when youre creating the task, you need to go to the last tab "Settings" and uncheck "Stop the task if it runs longer than:" if you like to keep your computer up and running. The default is 3 days and then it will stop the task if you dont uncheck it.

This was done on Windows 7
En son thunda tarafından düzenlendi; 26 Eki 2017 @ 11:08
Thanks to both of you.
THANK YOU BOTH FOR THIS GUIDE!
My Creative speakers turn off even when in use, if sound is not laud enough, usually has to be above what I would call normal.
Your are the best oobymach!

Thank you thunda for the additional info!

You guys just saved the speaker for me!

Bless bless!
If you are interested in a circuit mod to prevent stand-by mode, you can short Q2 on the PCB collector to emitter to bypass the whole sound detection circuit.

https://ibb.co/yWDMXHR
< >
6 yorumdan 1 ile 6 arası gösteriliyor
Sayfa başına: 1530 50

Gönderilme Tarihi: 31 Oca 2017 @ 17:59
İleti: 6