Wiindows Media Player Controller
Written on December 9, 2008, by Milot Shala.

Sometimes when we watch movies on our computer, if we don’t have a laptop such as HP or Apple to have their own remote controllers, we miss the thing for increasing and decreasing, playing and pausing and sometimes even stopping our movie. Well I was having that problem for some time now and I’ve found my solution. My simple solution was to use a Nintendo Wii’s remote and a .NET library written by Brian Peek and is located here: http://www.codeplex.com/WiimoteLib. I wrote a program that listens to the Wii Remote button presses and then performs an action on Windows Media Player using P/Invoke functions from User32.dll, FindWindow (to find the player) and SendMessage to send a message to the handle window (in our scenario, Windows Media Player).

So here is our Wii Remote legend:

Button “A” – Play/Pause
Button “B” – Stop
Button “+” – Volume Up
Button “-” – Volume Down
Button “Home” – Full Screen

So the main screen is this:

You can notice a red dot there, that is when the device is not connected, for e.g you forgot to connect the device with your computer, or the Wii Remote’s battery is gone, so whenever you see a green dot like a screenshot below, you can start using it:

For now I’ve provided you just the binary, but after refactoring the code and implementing something more interesting I will publish the code. So I will create a post for the code structure and implementation using the WiiremoteLib.

The path for download is here: http://codespartan.org/files/wiiController.rar

Tags: . If you would like to leave a comment, click here: 6 Comments. or stay up to date with this post via RSS, or you can Trackback from your site.

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

6 Comments so far
  1. [...] I know about using my .NET Managed Library for the Nintendo Wiimote.Wii Drum Synth by Richard Pope Windows Media Player Controller by Milot Shala Wii Drum High by Zhao A Wii Theremin by Ken Moore Blue Wii (Wiimote controlled [...]

  2. Alex Blog » Blog Archive January 19, 2009 11:45 pm

    [...] Windows Media Player Controller by Milot Shala [...]

  3. ruckerz January 22, 2009 5:06 pm

    download link is broked

  4. Milot January 23, 2009 12:07 am

    @ruckerz

    Yes because that was the old one, you can see this post which is second version and you can reach the download from codeplex: http://www.codeplex.com/WiiMediaController and these two links:

    http://codespartan.org/files/WiiremoteController.rar
    http://codespartan.org/files/WiiremoteController_SRC.rar

  5. iceman321 February 23, 2009 6:27 pm

    Hi,

    I tried using your Wiindows Media Player Controller. But only the buttons work, the infrared tracking for mouse movement does not work. Also you do not allow people to re-assign the WiiMote buttons?

    Thanks.

  6. Milot Shala February 24, 2009 12:30 am

    @iceman321

    Thank you for trying my Nintendo Wii experiment application.

    As for infrared tracking I don’t know for what we can use for? maybe for Wii gestures? You can send me an email every time for ideas at milot.shala@gmail.com.

    As for button re-assigning it was just a project for my own purposes and I didn’t knew that it can be useful for other people too.

    I try will make the button re-assignment happen on Wiindows Media Player Controller ASAP!

    Also you are welcome as I mentioned above to send me an email for new ideas.

    For the end, if you are a developer, you can read code and also send me feedback if I can improve it, or improve it yourself I have a codeplex page for WiiMediaController here: http://www.codeplex.com/WiiMediaController

© Copyright Phalanx Blogosphere - Powered by Wordpress - Phalanx logo is designed by Leopard Cana