Wiindows Media Player Controller
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




download link is broked
@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
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.
@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