Hacking Windows 7 Media Center

Setting a Shoutcast Alarm Clock in Media Center

by Michael Healy @ 9:00 am on June 2nd, 2010 in windows 7 with 4 Comments

alarm-clock-icon With this handy tip from Marc, a reader of Hack7MC, we can setup a regular alarm clock using Task Scheduler, mcShoutcast and Media Center. Much like your standard alarm clock this setup will be set to wake each morning and start a radio stream. Users can setup the alarm to wake regularly on weekdays, weekends or whenever you need an alarm set though the method isn’t exactly easy to setup initially and won’t allow for any sort of snooze action. Though a far cry from a full featured alarm clock plugin it will get the job done for anyone hard up for an alarm clock or the idea could even be expanded upon by enterprising users or future plugin programmers.

To get started with this example you’ll need to have mcShoutcast downloaded and installed, though the same process can be applied to any entry point. This example will launch mcShoutcast and start playing the first favorite station. To get started setting up the scheduled alarm open up Task Scheduler from the start menu (start –> “task scheduler” –> enter) and select the option to Create Basic Task.

create basic task

Give the task a name and description of your own choosing and move on to the next step in creating the task, setting the trigger. For a standard Monday through Friday alarm setup choose the Weekly option. From here the task can be set to run on specific days each week at a specific time each morning.

set time

Continuing on tell the Task Scheduler to Start a program at these times and enter the following to have mcShoutcast open and play the first favorite station: C:\Windows\ehome\ehshell.exe /entrypoint:{6691E7EC-EF42-4493-A2E9-2DA345F9B7D5}\{BB2F49CD-159C-4e06-91A8-80CE232DB19C}

Task Scheduler will inform you that the second portion of the string actually belongs in the arguments box (everything following the .exe) but will give you the option to do this automatically if not done by hand. Click OK on the dialog to move the entrypoint argument to the arguments box.

Some users may also need to set the options to run the program with Highest Privileges and to Wake the computer if sleeping. These options can be accessed by selecting the new task in the Task Scheduler Library and selecting Properties from the right. Select the Conditions tab from the Properties dialog and check the checkbox to enable waking the computer from sleep (which may also require highest privileges found on the General tab).

conditions

That should be all there is to it. Close any open dialogs and return to Windows. This method of launching mcShoutcast will open Windows Media Center if not already running, launch the plugin and then begin playing the first favorite station. To launch other plugins you’ll need to get the entrypoint as described in this previous article or use another Media Center switch to launch other media types.

Thanks to Marc for the tip and to all our Hack7MC readers. If you’ve got a tip for us let us know with our contact form! For those not yet signed up for one of our free subscriptions be sure to do that now as well!

4 Comments

Comment #12080 from Stefan Tucker (12noon) [Reply]

Cool idea. I hadn’t thought of controlling WMC this way. Too bad the command line isn’t friendlier. How about automatically turning on live TV to a certain channel in the morning?

You’ll find a more user-friendly interface for the alarm in Alarm++. It can also play MP3 files in your MP3 player, videos, whatever. The evaluation version is limited to five alarms. A $24.99 registration gives you unlimited alarms.

Comment left June 2, 2010 at 2:11 pm Permanent Link
@Reply #12081 from Stefan Tucker (12noon) [Reply]

P.S. Although, unlike the Task Scheduler, Alarm++ cannot bring the computer out of standby/sleep. That’s a feature I’d like to add in the future.

Comment left June 2, 2010 at 2:12 pm Permanent Link
Comment #12171 from Marc [Reply]

Working well for me, hence why I submitted this to hack7mc.

Couple things: use wake only if you let your computer sleep like I do. And allow this to spawn another process in case your media center is running an update while this alarm fires up.

If you don’t have a password on your account, there’s another step to do, but it’s fairly trivial.

Comment left June 3, 2010 at 1:20 pm Permanent Link

Jake
Comment #12274 from Jake [Reply]

I believe the text in the first sentence of the article should refer to Task Scheduler rather than Task Manger [sic].

Comment left June 5, 2010 at 6:47 am Permanent Link

Leave A Comment

Post Anonymously, Fill in your details or Use one of the Social Networks below to login and post a comment!