| View previous topic :: View next topic |
| Author |
Message |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
Posted: Sat Nov 21, 2009 3:52 am Post subject: Need postmessage for Windows Media Player buttons. |
|
|
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.
Thanks to any helpers. _________________ www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
 |
|
| Back to top |
|
 |
i3egohan
Joined: 18 Jul 2006 Posts: 403
|
Posted: Sat Nov 21, 2009 4:12 am Post subject: |
|
|
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 |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
Posted: Sat Nov 21, 2009 4:20 am Post subject: |
|
|
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 |
|
 |
i3egohan
Joined: 18 Jul 2006 Posts: 403
|
Posted: Sat Nov 21, 2009 4:23 am Post subject: |
|
|
| Code: | | PostMessage, 0x111, 32808, 0, , Windows Media Player |
Works fine for me. |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
Posted: Sat Nov 21, 2009 4:26 am Post subject: |
|
|
Doesn't for me.
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 |
|
 |
i3egohan
Joined: 18 Jul 2006 Posts: 403
|
Posted: Sat Nov 21, 2009 4:37 am Post subject: |
|
|
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 |
|
 |
blehmeco
Joined: 17 Nov 2009 Posts: 25
|
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
Posted: Sat Nov 21, 2009 4:52 am Post subject: |
|
|
Aha, never thought about that. O.O
Thanks. _________________ www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
 |
|
| Back to top |
|
 |
blehmeco
Joined: 17 Nov 2009 Posts: 25
|
Posted: Sat Nov 21, 2009 5:10 am Post subject: |
|
|
Glad that helped!
Cheers! |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
Posted: Sat Nov 21, 2009 6:57 am Post subject: |
|
|
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.  _________________ www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
 |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Sat Nov 21, 2009 8:40 am Post subject: |
|
|
| Eedis wrote: | | But that still doesn't help |
What do you need to Learn? Maybe I can help. |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
Posted: Sat Nov 21, 2009 9:51 am Post subject: |
|
|
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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Sat Nov 21, 2009 10:58 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
Posted: Sat Nov 21, 2009 5:48 pm Post subject: |
|
|
I love to learn and thank you a bunch SKAN You never refuse a great moment to help a fellow out.  _________________ www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
 |
|
| Back to top |
|
 |
|