Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: sending WMP messages

  1. #1
    Whistle Tip pimpJ's Avatar
    Join Date
    Apr 2004
    Location
    Metro, TX
    Posts
    523

    sending WMP messages

    Someone well versed in sending messages to WMP (I'm looking at you, Frodo) :
    I've recently downloaded talisman (a shell alteration program, I recommend) and the way they handle WMP is through a side bar but any button presses of that sidebar maximize WMP, somewhat defeating the purpose of having the sidebar.
    I'm not too fluent in Window's handles / sending messages or anything. I'm decent at coding, but not windows specific stuff. Any help/suggestions are appreciated. Here's what the helpfile has to say on the sendmessage command:
    Code:
    Syntax: sendmessage <parameter1> <parameter2> <parameter3> <parameter4> <parameter5>
    
    where:
    parameter1* - Window class name (string);
    parameter2* - Window name (string);
    parameter3 - message to send (integer);
    parameter4 - first Windows Message parameter (integer);
    parameter5 - second Windows Message parameter (integer).
    
    * - Use a "" for names with spaces. Use a nil parameter for not defined names. For example: send Play command to WinAmp player:
    
    sendmessage "Winamp v1.x" nil 273 40045 0
    I've been looking at WMP messages through Winspector Spy (= Spy++) for days and I can't find anything.

    Thanx
    I consider that our present sufferings are not worth comparing with the glory that will be revealed in us.

    www.neoterikos.com

  2. #2
    Whistle Tip pimpJ's Avatar
    Join Date
    Apr 2004
    Location
    Metro, TX
    Posts
    523
    heh, my "member type" (dunno what to call it. It says whistle tip now) changed. DIdn't even notice. When was that ?

    I guess that's what I get for not being here for 2 weeks. I miss things like this.

    I guess I don't feel guilty hijacking my own threads.
    sorry.. back on topic.
    I consider that our present sufferings are not worth comparing with the glory that will be revealed in us.

    www.neoterikos.com

  3. #3
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by pimpJ
    heh, my "member type" (dunno what to call it. It says whistle tip now) changed. DIdn't even notice. When was that ?

    I guess that's what I get for not being here for 2 weeks. I miss things like this.

    I guess I don't feel guilty hijacking my own threads.
    sorry.. back on topic.
    About two weeks ago.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  4. #4
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Well that code is for winamp, but wmp would be similar, however
    I don't know of any specific windows messages for wmp, but
    I also haven't looked.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  5. #5
    Whistle Tip pimpJ's Avatar
    Join Date
    Apr 2004
    Location
    Metro, TX
    Posts
    523
    Quote Originally Posted by frodobaggins
    About two weeks ago.
    fascinating
    I consider that our present sufferings are not worth comparing with the glory that will be revealed in us.

    www.neoterikos.com

  6. #6
    Whistle Tip pimpJ's Avatar
    Join Date
    Apr 2004
    Location
    Metro, TX
    Posts
    523
    Quote Originally Posted by frodobaggins
    Well that code is for winamp, but wmp would be similar, however
    I don't know of any specific windows messages for wmp, but
    I also haven't looked.
    alright, anyone else ?
    I consider that our present sufferings are not worth comparing with the glory that will be revealed in us.

    www.neoterikos.com

  7. #7
    Whistle Tip pimpJ's Avatar
    Join Date
    Apr 2004
    Location
    Metro, TX
    Posts
    523
    bump ?
    I consider that our present sufferings are not worth comparing with the glory that will be revealed in us.

    www.neoterikos.com

  8. #8
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    You don't communicate with windows media player through windows messages. You use more powerful COM controls. You can fake it by sending WM_LBUTTONDOWN messages to the play button, but its not very reliable and won't work if the window is offscreen. Theres nothing specificly for say playing a file by sending a WM_PLAY message or something like that. The only way around it I can see is to write your own wrapper app that will accept custom messages and embed a WMP control that will be controlled when it recieves the messages.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  9. #9
    Whistle Tip pimpJ's Avatar
    Join Date
    Apr 2004
    Location
    Metro, TX
    Posts
    523
    yikes.. that sounds like an overkill.

    I assume there's another way to do it. For instance, in firefox, there's a media player extension that allows me to control WMP. (without maximization or anything)
    I consider that our present sufferings are not worth comparing with the glory that will be revealed in us.

    www.neoterikos.com

  10. #10
    Whistle Tip pimpJ's Avatar
    Join Date
    Apr 2004
    Location
    Metro, TX
    Posts
    523
    http://msdn.microsoft.com/library/de..._reference.asp
    is this a step in the right direction ?
    I consider that our present sufferings are not worth comparing with the glory that will be revealed in us.

    www.neoterikos.com

Page 1 of 2 12 LastLast

Similar Threads

  1. WinAmp viz's in FP (i.e. in WMP)
    By NoPistonPC in forum FrodoPlayer
    Replies: 11
    Last Post: 07-26-2004, 03:17 PM
  2. Gapless playback between MP3's in WMP embedded in VB6?
    By CRCinAU in forum Software & Software Development
    Replies: 0
    Last Post: 05-23-2004, 04:40 AM
  3. Question for Developers - Help find WMP bug workaround
    By GingerPrince in forum Software & Software Development
    Replies: 4
    Last Post: 01-14-2004, 02:52 AM
  4. instant messages
    By Sh0cker in forum Mp3car Forum Suggestions/Comments
    Replies: 0
    Last Post: 12-10-2003, 05:41 PM
  5. Interesting Thing With WMP and VB
    By Bj in forum Software & Software Development
    Replies: 1
    Last Post: 10-08-2002, 02:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •