AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need postmessage for Windows Media Player buttons.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Sat Nov 21, 2009 3:52 am    Post subject: Need postmessage for Windows Media Player buttons. Reply with quote

I finally got Winspector Spy, thanks to SKAN. I'm following the instructions on here http://www.autohotkey.com/docs/misc/SendMessage.htm to get the message for the pause/player button, but it doesn't seem to be picking anything up. >.<

I'd be happy if someone could give me the message code or whatever, but "Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." I'd be more than happy if you taught me how. Smile

Thanks to any helpers.
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
i3egohan



Joined: 18 Jul 2006
Posts: 403

PostPosted: Sat Nov 21, 2009 4:12 am    Post subject: Reply with quote

In most media players the space bar is used to toggle play/pause. have you tried this yet? maybe a simpler approuch..

Something like this

Code:
ControlSend, WMPAppHost1, {Space}, Windows Media Player
Back to top
View user's profile Send private message
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Sat Nov 21, 2009 4:20 am    Post subject: Reply with quote

Ahh, in VLC it is space and in most others. But WMP unfortunately does not. The play button has to be highlighted and have focus in order for space to work. I've tried that a while back.
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
i3egohan



Joined: 18 Jul 2006
Posts: 403

PostPosted: Sat Nov 21, 2009 4:23 am    Post subject: Reply with quote

Code:
PostMessage, 0x111, 32808, 0, , Windows Media Player


Works fine for me.
Back to top
View user's profile Send private message
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Sat Nov 21, 2009 4:26 am    Post subject: Reply with quote

Doesn't for me. Sad

I have Windows XP Professional SP3 and my WMP version is 11.0.5721.5145

What about you?
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
i3egohan



Joined: 18 Jul 2006
Posts: 403

PostPosted: Sat Nov 21, 2009 4:37 am    Post subject: Reply with quote

Windows Vista x64
Windows Media Player 11.0.6001.7008

If i run the following script and hit F2. It will toggle play/pause

Code:
F2::
PostMessage, 0x111, 32808, 0, , Windows Media Player
Return
Back to top
View user's profile Send private message
blehmeco



Joined: 17 Nov 2009
Posts: 25

PostPosted: Sat Nov 21, 2009 4:41 am    Post subject: Reply with quote

Ok, don't want 2 b 2 basic here, but, have you tried this:

Code:
SendInput, {Media_Play_Pause}



Or if you that's not want that, you could check this fantastic thread by jballi and try some of the messages he found:

http://www.autohotkey.com/forum/topic8566.html&highlight=full+screen+media+player

Hope that helped!

Cheers!
Back to top
View user's profile Send private message
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Sat Nov 21, 2009 4:52 am    Post subject: Reply with quote

Aha, never thought about that. O.O

Thanks.
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
blehmeco



Joined: 17 Nov 2009
Posts: 25

PostPosted: Sat Nov 21, 2009 5:10 am    Post subject: Reply with quote

Glad that helped! Wink


Cheers!
Back to top
View user's profile Send private message
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Sat Nov 21, 2009 6:57 am    Post subject: Reply with quote

But that still doesn't help the whole "Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." factor. Sad
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Sat Nov 21, 2009 8:40 am    Post subject: Reply with quote

Eedis wrote:
But that still doesn't help


What do you need to Learn? Maybe I can help.
Back to top
View user's profile Send private message Send e-mail
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Sat Nov 21, 2009 9:51 am    Post subject: Reply with quote

I've been wanting to learn how to get the postmessages of stuff. I tried following that tutorial by jaco but it didn't work or I didn't get it. Lolz.
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Sat Nov 21, 2009 10:58 am    Post subject: Reply with quote

Eedis wrote:
how to get the postmessages of stuff.


The simplest way:

Step 1:
There are two scripts posted in Get Info from Context Menu by Micha
Copy/Paste and run the 2nd Script.

Step 2:
Run/Focus your app and Select a Bar in Menu and hover over an item. I repeat.. just hover over the menu item.. do not click it.

That is it. You will have a tooltip displayed @ 0,0 coordinates that will show the wParam values for WM_Command.

This will work for the Tray menu too..



Quote:
I've been wanting to learn


.. you like to learn? Look into Micha's code Smile
Back to top
View user's profile Send private message Send e-mail
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Sat Nov 21, 2009 5:48 pm    Post subject: Reply with quote

I love to learn and thank you a bunch SKAN Smile You never refuse a great moment to help a fellow out. Smile
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group