Integration of WMP10 w/ remote-1.02 and wndman-0.15 Thread last updated on 2006-04-24 03:28:47

Posted by member 268073 on 2005-12-09 03:22:17

I just finished logging all the messages I could send via the menu bar, minus redundant ones. I thought since I couldn't find any up to date ones that it would be good if I posted them in here.


; Writen by Gripen40k using Spy++

;-------------------------------------------------------
; Windows Media Player controls
;-------------------------------------------------------
; Name_of_cmd win_recieving msg ;old msg

;Play commands------------------------------------------
*Send WMPPLAY "WMPlayerApp" 18808 ;32808
*Send WMPPLAYFAST "WMPlayerApp" 18834
*Send WMPPLAYNORM "WMPlayerApp" 18835
*Send WMPPLAYSLOW "WMPlayerApp" 18836
*Send WMPSTOP "WMPlayerApp" 18811 ;32809
*Send WMPPREV "WMPlayerApp" 18810 ;32810
*Send WMPNEXT "WMPlayerApp" 18811 ;32811

;This next 2 commands may be player/computer specific!
*Send WMPPLAYDVD "WMPlayerApp" 19684
*Send WMPEJECTDVD "WMPlayerApp" 19704

;Open/play order----------------------------------------
*Send WMPOPEN "WMPlayerApp" 57601
*Send WMPOPENURL "WMPlayerApp" 18835
*Send WMPSUFFLE "WMPlayerApp" 18842 ;32842
*Send WMPREPEAT "WMPlayerApp" 18843 ;32843

;Volume-------------------------------------------------
*Send WMPMUTE "WMPlayerApp" 18817 ;32817
*Send WMPVOLUP "WMPlayerApp" 18815 ;32815
*Send WMPVOLDOWN "WMPlayerApp" 18816 ;32816

;Looks--------------------------------------------------
*Send WMPFULL "WMPlayerApp" 18780
*Send WMPSKIN "WMPlayerApp" 18781
*Send WMPSKINCHOOSE "WMPlayerApp" 16009

;Location-----------------------------------------------
*Send WMPNOWPLAYING "WMPlayerApp" 16000
*Send WMPLIB "WMPlayerApp" 16004
*Send WMPRIP "WMPlayerApp" 16003
*Send WMPBURN "WMPlayerApp" 16006
*Send WMPSYNC "WMPlayerApp" 16007
*Send WMPGUIDE "WMPlayerApp" 16001

;show enhancements (SRS effects etc.)-------------------
*Send WMPENHANCE "WMPlayerApp" 18789

;Video size---------------------------------------------
;fvtp = fit video to player on resize
*Send WMPFVTP "WMPlayerApp" 18802
;fptv = fit player to video on start
*Send WMPfptv "WMPlayerApp" 18805
;scaling 50/100/200%
*Send WMP50 "WMPlayerApp" 18800
*Send WMP100 "WMPlayerApp" 18801
*Send WMP200 "WMPlayerApp" 18802

;options menu-------------------------------------------
*Send WMPOPTIONS "WMPlayerApp" 18840

;Help---------------------------------------------------
*Send WMPHELP "WMPlayerApp" 18826


To use these just include remote-1.02 and where ever you can use a bang command just type:
!send name_of_command
You also need to include the above code in some included file as well.

There is a small tutorial on how to integrate this into C# for anyone who is interested:
http://www.codeproject.com/csharp/wmp_pinvoke.asp

This should help out a lot of people who dislike winamp or don't like using more than one media player (like me). Anyways, I customized complex_simplicity by DeVante for use with WMP10, and it works great.

To open the thing to begin with, one can use wndman and the following bang scripts:

*Script bang !WMP_Power
*Script exec !ifNExist %{wmppower} {"$AudioPlayer$"}
*Script gotoif ("%{wmppower}" "on") off
*Script exec !WndClose WMPlayerApp
*Script goto end
*Script label off
*Script exec "$AudioPlayer$"
*Script label end
*Script ~bang

*Script bang !WMP_Close
*Script exec !WndClose WMPlayerApp
*Script ~bang

*Script bang !WMP_Show
*Script exec !WndRestoreFromTray WMPlayerApp
*Script exec !WndRestore WMPlayerApp
*Script exec !WndForeground WMPlayerApp
*Script ~bang

*Script bang !WMP_Hide
*Script exec !WndSendToTray WMPlayerApp
*Script ~bang

Power and Show were adapted from Offa by Lasse Bjerg.

To use these you need to have the command:
*mzScriptFile "location\filename.rc"

Yeah, so hope that helps all the newbs out there, like me, who are just learning all this crazy litestep junk!

[edit]: screwed up and accidentally entered in HTML :P

Posted by member 177446 on 2006-04-08 21:07:06 link

Hey I been trying to get this work and have noticed there is an error with the WMPSTOP code, whoever made it has just put the code for the next command instead of the proper stop command. The correct code is 18809. Also you don't need a script to auto open media player if it isn't loaded. Instead you can put the path to mediaplayer as the last argument in your *Send definitions this instructs remote to open the path if it can't send the message. Here's what my WMPSTOP definition looks like

*Send WMPSTOP "WMPlayerApp" 18809 $AudioPlayer$

Hope this helps anyone who was wondering why stop was behaving like next.

Posted by member 321174 on 2006-04-24 03:28:47 link

I'm probobly asking a stupid question, but I'm a newb. Anyway, where shoud this code be put? Thankyou.