Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to figure out VK_ virtual key for a key?

14 Apr 2010   #1

Windows 7 RTM x64 (desktop), x32 (HTPC)
 
 
How to figure out VK_ virtual key for a key?

Hi folks,

Quick summary: what's a good way to press a key on a keyboard and have some utility tell me what VK_XXX it is? I have an Adesso wireless keyboard that has a cluster of media center keys, and I want to custom map them in Media Player Classic Home Cinema (MPC-HC). Attached is a pic of the keyboard with keys I'm trying to figure out highlighted in red.

I'm working to integrate MPC-HC into WMC/Media browser following Damian's guide:
http://www.mediasmartserver.net/2010/01/29/guide-using-mpc-hc-as-your-video-player-in-wmc-media-browser/

For WAF reasons, I want the experience of watching an MKV in MPCHC to be functionally as close to watching recorded TV in WMC as possible. This means setting up 30 second skip forward and 5 second skip back, or as close to it as possible, using the same keys WMC uses (the >| and |< keys that give +30 seconds and -5 seconds for recorded TV).

In MPCHC these keys seem to move from one chapter to the next. I never use chapter stuff… just want them to be jump forward large and jump backward medium in MPCHC. Went into MPC-HC Options… Keys... and assigned Jump Forward (Large) to VK_Next (no modifier) and Jump Backward (medium) to VK_Prior (no modifier). But these keys still do chapter movements, even if I clear out the entries for Next and Previous commands (which were the original commands to use VK_Prior and VK_Next) to none/blank.

Any thoughts here? I can assign the Jump commands to different keys and those work… but I seem to be missing something re: the VK_Next/Prior to get it to work like it does in WMC.

So I believe I've got the wrong VK_ identifier for the >| and |< keys.

The keys I'm talking about are part of a cluster on the far left of my keyboard next to pause, play, FF/RW, etc. keys.

Any help appreciated!
Marc




Attached Images
 
My System SpecsSystem Spec
.

14 Apr 2010   #2

XP Pro SP3 X86 / Win7 Pro X86
 
 

Quote   Quote: Originally Posted by MarcG View Post
Hi folks,
Q uick summary: what's a good way to press a key on a keyboard and have some utility tell me what VK_XXX it is? I have an Adesso wireless keyboard that has a cluster of media center keys, and I want to custom map them in Media Player Classic Home Cinema (MPC-HC). Attached is a pic of the keyboard with keys I'm trying to figure out highlighted in red.
Any help appreciated!
Marc
Here ya go...

Virtual-Key Codes

However... you should not have to do that... MPC-HC on it's options/Keys page has a checkbox for "Global Meida Keys" that automatically maps to those keys.
My System SpecsSystem Spec
14 Apr 2010   #3

Windows 8.1 Pro (x64)
 
 

Some keys do not have a VK_* however I did find a program that will give a numerical code.
Keyboard Codes Display
My System SpecsSystem Spec
.


15 Apr 2010   #4

Windows 7 RTM x64 (desktop), x32 (HTPC)
 
 

Thanks guys, I'll give this a whirl tonight. I'll admit to some confusion about that "Global Media Keys" checkbox in MPCHC. Checking it doesn't seem to do much at least not obviously. I'll poke around and report back.

Marc
My System SpecsSystem Spec
15 Apr 2010   #5

XP Pro SP3 X86 / Win7 Pro X86
 
 

Quote   Quote: Originally Posted by MarcG View Post
Thanks guys, I'll give this a whirl tonight. I'll admit to some confusion about that "Global Media Keys" checkbox in MPCHC. Checking it doesn't seem to do much at least not obviously. I'll poke around and report back.

Marc

I know you're trying to connect MPC-HC into something else in an effort to make playing movies on the computer as much like watching television as possible... but believe me, you don't actually need to do that. With a wireless keyboard you can simply find and click on the file you want and MPC-HC will perk up and play it for you...

The "Global Media Keys" allows you to have MPC-HC minimized in the taskbar and still have the media keys work... but it also activates half a dozen "undocumented" keys as well.

I work extensively with this software... it's my media player of choice for home theatre installations... and it's a good'n
My System SpecsSystem Spec
15 Apr 2010   #6

Windows 7 RTM x64 (desktop), x32 (HTPC)
 
 

Thanks for the link to the program that gives the keycodes. Turns out the >| and |< keys don't seem to have VK_ assignments (they show up as unassigned in the utility). They are keycodes 176 and 177 according to the utility.
Now I'm trying how to figure out how to assign these in MPCHC. No matter what I do those two keys still cause chapter forward and back.

I'm not sure what the "Global Media Keys" checkbox in MPCHC does. I haven't noticed any change in what happens with it unchecked (default) or checked.

Any further help would be appreciated.

Marc
My System SpecsSystem Spec
15 Apr 2010   #7

XP Pro SP3 X86 / Win7 Pro X86
 
 

Quote   Quote: Originally Posted by MarcG View Post
Thanks for the link to the program that gives the keycodes. Turns out the >| and |< keys don't seem to have VK_ assignments (they show up as unassigned in the utility). They are keycodes 176 and 177 according to the utility.
Now I'm trying how to figure out how to assign these in MPCHC. No matter what I do those two keys still cause chapter forward and back.

I'm not sure what the "Global Media Keys" checkbox in MPCHC does. I haven't noticed any change in what happens with it unchecked (default) or checked.

Any further help would be appreciated.

Marc
In MPClassic the key codes you want to map to for the medium jump ahead and back are CRTL+VK_LEFT and CTRL+VK_RIGHT (10 second jumps)

If your keyboard won't remap to those keys, you can change MPClassic's internal keymap to suit... On Options -> Keys, scroll down to the JumpForward and JumpBack section, click in the Key column and open the pulldown... the two values you want are listed as... OEM_FJ_IJSHO and OEM_FJ_MASSHOU ... The big hint here is that they are listed in numerical order.
My System SpecsSystem Spec
16 Apr 2010   #8

Windows 7 RTM x64 (desktop), x32 (HTPC)
 
 

Quote   Quote: Originally Posted by CommonTater View Post

In MPClassic the key codes you want to map to for the medium jump ahead and back are CRTL+VK_LEFT and CTRL+VK_RIGHT (10 second jumps)

If your keyboard won't remap to those keys, you can change MPClassic's internal keymap to suit... On Options -> Keys, scroll down to the JumpForward and JumpBack section, click in the Key column and open the pulldown... the two values you want are listed as... OEM_FJ_IJSHO and OEM_FJ_MASSHOU ... The big hint here is that they are listed in numerical order.
Thanks, I tried mapping the OEM_FJ_IJSHO and MASSHOU to the functions, but those two keys still caused chapter jumps instead of short back and forth movements. I'd really like to change this in MPCHC because I definitely DON'T want to do a remapping of the key at a level that will change how the key works in windows media center, since we use that for watching TV and such.

Any further help appreciated!

Marc
My System SpecsSystem Spec
16 Apr 2010   #9

XP Pro SP3 X86 / Win7 Pro X86
 
 

Quote   Quote: Originally Posted by MarcG View Post
Quote   Quote: Originally Posted by CommonTater View Post

In MPClassic the key codes you want to map to for the medium jump ahead and back are CRTL+VK_LEFT and CTRL+VK_RIGHT (10 second jumps)

If your keyboard won't remap to those keys, you can change MPClassic's internal keymap to suit... On Options -> Keys, scroll down to the JumpForward and JumpBack section, click in the Key column and open the pulldown... the two values you want are listed as... OEM_FJ_IJSHO and OEM_FJ_MASSHOU ... The big hint here is that they are listed in numerical order.
Thanks, I tried mapping the OEM_FJ_IJSHO and MASSHOU to the functions, but those two keys still caused chapter jumps instead of short back and forth movements. I'd really like to change this in MPCHC because I definitely DON'T want to do a remapping of the key at a level that will change how the key works in windows media center, since we use that for watching TV and such.

Any further help appreciated!

Marc
Ok... so go into MPClassic and change the key assignments... It's beyond easy to do...

Start MPC-HC ... type the letter O (as in Oscar)... now click on Keys... and there you are... you can set them up any way you wish.
My System SpecsSystem Spec
16 Apr 2010   #10

Windows 7 RTM x64 (desktop), x32 (HTPC)
 
 

Quote   Quote: Originally Posted by CommonTater View Post

Ok... so go into MPClassic and change the key assignments... It's beyond easy to do...

Start MPC-HC ... type the letter O (as in Oscar)... now click on Keys... and there you are... you can set them up any way you wish.
Sadly it's not that easy. I go into the Keys section, and right there are the commands such as Jump Forward etc.. My problem is I don't know what to enter for the key assignments because apparently there are no VK_ names for the two keys I'd like to use, and I don't see any way to enter the key codes (176 and 177) I got from that utility in that Keys screen. Entering the hex equivalents as ASCII didn't work, nor did using the two OEM_ suggestions .

Any other thoughts? I know it sounds like it should be easy, but I'm clearly missing something. I think those keys are being captured some other way for the chapter skip purpose, and I'm looking for help getting around that, and figuring out what to enter in the Keys section.

Thanks!

Marc
My System SpecsSystem Spec
Reply

 How to figure out VK_ virtual key for a key?




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:20 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33