Question - How to change the Windows start up sound to play random wavs?

Associate
Joined
4 Nov 2014
Posts
15
Location
Scotland
Hi guys, how you all doing?

So I currently have the Crysis Nanosuit voice all over my computer to talk to me when I do thing such as plug in a USB stick ("New hardware detected") and turn off the computer ("Critical Shutdown immenent"), but want to change it. I know how to change audio files but i am wondering if there is anyway to make windows pick from a list/folder of wavs randomly and play the, The reason I am asking is that I plan to get wavs of Defective Turret from Portal 2 and make it randomly play greetings as he has a lot of different ways to say the same thing.

Or is this simply not possible? Thanks guys!
 
Last edited:
Its possible - though it might require something a bit more advanced than the default options in Windows i.e. a script or custom program launched at startup or via the windows task scheduler.
 
Last edited:
On shutdown,script the renaming of files. Call the files...

Startup1.wav
Startup2.wav
To
Startup10.wav

Set startup1.wav as your startup sound.

Then get the script to rename 10 to 11,9 to 10...... Finally 11 to 1.

This way teach time you shut down you'll get the next one in the list on your next boot.

Personally mine are set to no sounds
 
the startup sound is stored in the registry and here's bit of javascript that updates the registry every time you logon. save as script.js somewhere.

Code:
var WshShell = new ActiveXObject("WScript.Shell");

//note the double backslashes here....
var paths = [
	"e:\\folder\\1.wav",
	"e:\\folder\\2.wav",
	"e:\\folder\\3.wav"
];

var path = paths[Math.floor(Math.random() * paths.length)];

WshShell.RegWrite("HKCU\\AppEvents\\Schemes\\Apps\\.Default\\SystemStart\\.Current\\", path, "REG_EXPAND_SZ");

note these registry settings are for XP (:eek: ) as that's all i have access to at the moment. you may need to check they exist on newer versions of windows. this file needs running every time you logon so it updates. you can create a shortcut in your startup folder that launches

Code:
cscript.exe //nologo "c:\path\to\script.js"
 
Hmm, never dealt/created scripts before. I take it I use Notepad++ then save it as a .js file?
 
it's just a plain text file. if you have notepad++ already then you can use it but for this, windows notepad is just as good.

edit: it's important you check these registry keys actually exist before trying it. i doubt you're running XP like me?? start>search>regedit. you can browse the path in the last line of code i posted (HKCU stands for HKEY_CURRENT USER)
 
Last edited:
it's just a plain text file. if you have notepad++ already then you can use it but for this, windows notepad is just as good.

edit: it's important you check these registry keys actually exist before trying it. i doubt you're running XP like me?? start>search>regedit. you can browse the path in the last line of code i posted (HKCU stands for HKEY_CURRENT USER)

Yea, running windows 7. But thanks, I will give this a whirl. Should be interesting, never done anything like this before!
 
Just checked and there is no system start reg key for Windows 7. There are ones such as systemexit, Logon/Logoff amongst others, but no systemstart, meaning it must be unchangable?
 
Back
Top Bottom