Home Download Screenshots Wiki Plugins Translations Developers Donate Forums/Help Contact Us |
StrokeIt
CTRL + P Hotkey Impossible to setPosted by Laith
<HTML>I want to create a command that will pause Windows Media Player. In windows Media Player the CTRL + P is used to pause playback.
The problem is that when I try to create a hotkey command and hit CTRL + P, the StrokIt Preferences dialog box comes up, so I can never define the CTRL + P hotkey. Is there way around this?</HTML>
<HTML>Every menu or button command has an associated WM_COMMAND number. I simply used the Spy++ utility (it comes with DevStudio, but you can download it separately <a href="http://www.lynn3686.freeserve.co.uk/download.html">here</a>
- Run Spy++ - Run Media Player - In Spy++, Select "Spy | Messages" - Drag the message target over Media Player - Check the "Windows of same Process" checkbox - Switch to the "Messages Tab" - Click "Clear All" - Scroll down the list and select "WM_COMMAND" - Click OK - Switch to Media Player - Right click, and choose "Pause" - Look at the Spy++ Window, it should have a line that looks like: <000XX> 000XXXX S .... WM_COMMAND wNotiyfCode: 0 (sent from a menu) wID: 32808 The wID is the value you want to use for wParam, simple, eh? :) -- Jeff</HTML> |