Home
Download
Screenshots

Wiki
Plugins
Translations
Developers
Donate

Forums/Help
Contact Us

StrokeIt

CTRL + P Hotkey Impossible to set

Posted by Laith 
Laith
CTRL + P Hotkey Impossible to set
December 19, 2002 11:29AM
<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>
Laith
Re: CTRL + P Hotkey Impossible to set
December 19, 2002 11:33AM
<HTML>CTRL + A appears to be a problem as well</HTML>
Laith
Re: CTRL + P Hotkey Impossible to set
December 19, 2002 11:41AM
<HTML>I found a temporary workaround by creating a keystroke instead "[ALT]PP" however occassionally it does not take.</HTML>
Jeff
Re: CTRL + P Hotkey Impossible to set
December 19, 2002 12:18PM
<HTML>This is fixed in the next version. Another workaround is to use the standard keyboard command [CTRL_DOWN]p[CTRL_UP] instead of using the "Hotkey" command.

-- Jeff</HTML>
Laith
Re: CTRL + P Hotkey Impossible to set
December 19, 2002 03:05PM
<HTML>I don't know if it is a matter of timing or adding enough delay but it does not pause playback consistently. It is almost as if it does the command too fast. I have tried adding a delay in there but it does not help. I will keep fiddling with it!</HTML>
Jeff
Re: CTRL + P Hotkey Impossible to set
December 19, 2002 03:56PM
<HTML>Media player never seems to handle keyboard commands properly.

Try this:

Command: "WinMsg - SendMessage"
MessageId: WM_COMMAND
WParam: 32808
LParam: 0

-- Jeff</HTML>
Laith
Re: CTRL + P Hotkey Impossible to set
December 19, 2002 04:31PM
<HTML>Worked like a charm. Now where in the world did you get that information? Is there some kind of reference on the online for the WParam codes?

Thanks,
Laith</HTML>
Jeff
Re: CTRL + P Hotkey Impossible to set
December 19, 2002 11:04PM
<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>
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 7 plus 19?
Message: