loading
Picture of Mp3 Computer Alarm Clock
Use an old or current computer to wake you up to your favorite tunes using only free software. Note that this has only been tested on an XP machine....Vista users can try this but it might not work
 
Remove these adsRemove these ads by Signing Up

Step 1: Download Programs

Picture of Download Programs
AutoHotkey_logo.gif
The first thing that you will need to do is go out on the internet and download the necessary supporting applications. You will need VLC Media Player and Auto Hot Key. You may also want to download a nice icon for the program we will be creating from Here. Once you have downloaded the programs, install them.

Step 2: Write some scripts kiddies

Picture of Write some scripts kiddies
Stuff to Delete.JPG
This will be the backbone of the whole alarm clock system. We will be using auto hot key to set the volume, unmute the system, and start vlc media player playing our files. First open the sample script that comes with auto hot key and delete the main portion of the file that has been written. Then you need to add three important lines.
"SoundSet, 15" - Sets the main volume control to 15%.
"SoundSet, 0, ,mute" - Turns mute off.
"Run "%A_ProgramFiles%\videolan\vlc\vlc" "c:\documents and settings\%username%\my documents\my music\alarms" --recursive collapse --no-one-instance --high-priority --fast-mutex --random --loop" - Starts vlc media player randomly looping all the songs in the alarms folder under my music.

Step 3: Compile

Picture of Compile
The next thing you want to do is to convert the ahk file that we just edited into an exe. Go into the folder that you installed auto hot key into (by Default: C:\Program Files\AutoHotKey) and find the folder named compiler. Open that and then run the program ahk2exe.exe. It should bring up a window that looks like the one in the picture included in this step. Select Browse next to the source box and find the ahk file we edited. The destination field is optional, but it is usually a good idea to fill it in. If you got a cool icon to use for the program then choose browse next to the custom icon box and go find it. Once you've input everything click convert. Once exe is created you will want to move it into a location that's easy to find, I would suggest My Documents.

Step 4: Music Testing

This is the point that you will want to create a folder called Alarms under your my music directory and add a few files for testing with. Once you have added a few files run the exe that we created in the last step. If the volume changes to 15% and unmutes itself and vlc runs without any errors then we can continue. If not then you will need to look at the support forums for vlc and auto hot key to try and figure out what went wrong and how to fix it. Please note that 15% volume also may not be enough to wake some people and so you may want to go back and adjust the 15 in the script to a higher number. You can figure out how much volume you need by playing around with it until you get the perfect number that's loud enough to wake you but not bother your roommates in their bedrooms.

Step 5: Setting up scheduled tasks

Picture of Setting up scheduled tasks
Scheduled Tasks Desktop.JPG
Add Scheduled Task.JPG
Next you will want to go into the control panel and find the icon that is labeled Scheduled Tasks. Right click it and select create shortcut. It will pop up with an error that asks if you would like to create the shortcut on the desktop. Click yes and then open up the scheduled tasks folder that appeared on your desktop.

Step 6: Adding a scheduled task

Picture of Adding a scheduled task
Naming and Timing.JPG
Daily.JPG
Weekly.JPG
Monthly.JPG
One Time.JPG
Here's the part that you'll want to remember for each new alarm that you want to create. In the scheduled tasks folder there is a link that says Add New Scheduled Task. Double click this and then click next in the window that pops up. You will be presented with a dialog box that wants to know which program to run. Click browse and then go and find the auto hot key exe that we created. It will then ask you for a name for the task and how often you want it to run. I've included pictures of some of the options that you have. Daily allows every day, weekdays, and every X days. Weekly allows you to choose days of the week that it should run. Monthly lets you select which months and which day on those months that it should run. The last three are pretty self explanatory.

Step 7: Advanced

Picture of Advanced
Advanced - Task.JPG
Advanced - Schedule.JPG
Advanced - Settings.JPG
The next step asks you for a username and password, don't worry about this and just click next. The last step asks you if you would like to open the advanced settings for the task. You will want to make sure to check this box and click finish. It will pop up an error about insufficient rights that you will want to ignore and click ok to continue. It will pop up a new box with some options that you can play around with. The first one that you want to set is the Run only if logged on option to make sure that the program will run even though it doesn't have your windows password. The next page is schedule and you can change the settings of when it will go off here. The last page that you will have to worry about is the settings page. You will want to set the task to stop if it runs for more than 1 minute. No this will not stop vlc from playing, but it will stop auto hot key if it hangs. You will also want to make sure that the last three check boxes are set up correctly so that the computer will play the alarm no matter what. Make sure that the first two of the last three boxes are unchecked and that the last one is checked just like in the picture.

Step 8: Final testing

The last thing to do is click ok to exit the advanced settings. Then I would recommend that you right click on the task that was just created and click run to test it all again. If it works then congratulations! You now have an mp3 alarm clock. Fill up the Alarms folder with your favorite songs to wake up to!
atarom5 years ago
Uhhhh, can't tasks open playlists? That's what I did in high school... 10 years ago =/
natrinicle (author)  atarom5 years ago
 I think if you were to start a task with a command line of "start c:\path\to\playlist.m3u" then it should start the playlist with the default media player.
tabllabesab5 years ago
hey i did this on vista and it worked great. I didn't even have to compile it the vista task scheduler can run scripts. Also i use a .pls file so now i wake up to my favorite internet radio station. thanks a bunch it great to wake up and be jamming out to some hardstyle. 
xaenon5 years ago
You could do the whole thing using Windows task scheduler. Nice thing there is using task scheduler you can have any number of events scheduled and there are options other than time/date. Once you've set it, you don't have to have winamp running - scheduler will call it up and load it for you based on the time you've specified. But, as has been pointed out, the computer has to be running for this to work.
Shooby, I'm not too sure about the details and am about to explore this further...but my cheap-o Asus motherboard has an option in the BIOS to power up your computer at a given time daily. This may not be an option for everyone but if it works, this'd be even better!
natrinicle (author)  malenkylizards6 years ago
Thanks for your comment, following up I have also found a feature of task scheduler I didn't know existed when I wrote this. You can put your computer to sleep and provided that you check the box that states: "Wake Computer to run this task" under the settings tab it will turn itself back on to play your alarm.
TOCO6 years ago
what is the 3-d tic tac toe? could you send me a link if it is a download?
natrinicle (author)  TOCO6 years ago
It's an old dos game. I found it on a freeware dos games disc I got from a second hand store. I'm not sure if or where you could find it online. Best bet is to try abandonware sites
gschoppe7 years ago
dude, google "citrus alarm clock", it takes much less work, and it'll play in the default media player for whatever format you choose. sorry to sound like an ad, but in my opinion, this is too complicated to use on a daily basis.
natrinicle (author)  gschoppe7 years ago
Citrus alarm clock does look like a good alternative. However I am what you might call a starving student and don't really feel like paying for anything (although citrus is cheap). Also the hardest part is really only making the exe to begin with, setting the alarm I do once a semester for classes and only here and there for other morning activities. Although I do see your point
I didn't realize that citrus had gone shareware... version 1.0.5 is still available for free...

however, if you're using a set schedule, your method probably works fine.

citrus 1.0.5
mrmath7 years ago
Why not winamp with an alarm clock plugin?
natrinicle (author)  mrmath7 years ago
Winamp would also be a great solution to the problem. The only question I have about it is: Would you have to have winamp running as it is a plugin. I'm very forgetful about starting things every night and if it is dependent on winamp running then that would not be the solution for me. Also I did want to stay in the spirit of making things, so why use it when you can build something on your own? The other nice thing about the way that I did it is that Auto Hot Key can do sooo much more than simply run a program or control the volume. I can set it up to load a nice online morning newspaper, pop up a small text window(for being discreet), or use it in a multitude of other ways. Check out AHK's website to see all that it can do.
shooby7 years ago
Or a radio alarm clock, perhaps. Seems a bit wasteful to keep the computer on all night, just so that you can listen to an extra song in the morning.
natrinicle (author)  shooby7 years ago
I leave the computer on anyway, so it might as well do something useful for me in the morning. It's that argument of what's better for a computer...on 24/7 or only on when you need it.