menu key

Hello,

How can I hide a div when the menu key is pressed

thanks.



Answer this question

menu key

  • red60man

    LevelX - there's actually are really stupid *quirk* with iHDsim that is likely the cause of why you are not seeing ctrl+M repsond correctly. That is.. iHDsim does not like alot of USB keyboards. it sounds stupid, but you either have to have a PS2 keyboard or a "microsoft" branded usb keyboard to get the keyboard shortcuts to work correctly.

    This has been the case in all of my experience with the sim so far. Currently my laptop that I do all my development on has it's keyboard wired to an internal usb port.. So while there's a long list of keyboard shortcuts for skipping chapters, menu keys, resume keys and all the normal remote functionality... none of them work.

    An odd tip though... if all you want to test is the menu key... press simply the 'alt' key and it will actually throw a controller key down event with the right keycode for the menu key as if you pressed ctrl+M.

  • Tom v E

    if (evt.key == 0xCE)
    {
    // your code to hide the div

    evt.stopPropagation();
    evt.preventDefault();
    }

    Does it work if you add the code above
    Where can I find this guide you referred to

    Cheers,
    Gunnar

  • john schmidty

    Thank you. Do I need the drivers for a stanard XP machine

    JT



  • j3ns3n

    You'll need to react on the event generated by the remote control key:

    application.addEventListener("controller_key_down",handleEvent,true);

    function handleEvent(evt)
    {
    if (evt.key == 0xCE) { your code to hide the div }
    }

    Btw. Is there a list somewhere with numeric values for all remote control keys


  • Marlin7

    No, unfortunatly but should get it eventually.

    From the hd dvd programming guide > AccessKey Data Type

    VK_0
    VK_1
    VK_2
    VK_3
    VK_4
    VK_5
    VK_6
    VK_7
    VK_8
    VK_9
    VK_A_BUTTON
    VK_ANGLE
    VK_AUDIO
    VK_B_BUTTON
    VK_BACK
    VK_C_BUTTON
    VK_CC
    VK_D_BUTTON
    VK_DOWN
    VK_E_BUTTON
    VK_ENTER
    VK_ESC
    VK_F_BUTTON
    VK_FF
    VK_FR
    VK_G_BUTTON
    VK_H_BUTTON
    VK_I_BUTTON
    VK_J_BUTTON
    VK_K_BUTTON
    VK_L_BUTTON
    VK_LEFT
    VK_LEFTDOWN
    VK_LEFTUP
    VK_MENU
    VK_MOUSE_1
    VK_MOUSE_2
    VK_MOUSE_3
    VK_MOUSE_4
    VK_MOUSE_5
    VK_PAUSE
    VK_PLAY
    VK_RESUME
    VK_RIGHT
    VK_RIGHTDOWN
    VK_RIGHTUP
    VK_SF
    VK_SKIP_NEXT
    VK_SKIP_PREV
    VK_SR
    VK_STEP_NEXT
    VK_STEP_PREV
    VK_SUBTITLE
    VK_SUBTITLE_SWITCH
    VK_TAB
    VK_TOP_MENU
    VK_UP
    VK_VECTOR_1
    VK_VECTOR_2
    VK_VECTOR_3
    VK_VECTOR_4


  • Sweeps78

    I'm testing my remote control events and I would like to use the MS Sim to do this instead of using the Xbox. So I searched the help and the forum and I can't seem to get CTRL+M and CTRL+T to work in the MS Sim. However my events are being called. I've tried code that I know works in the Xbox and that doesn't work.

    Do I need to start the MS Sim in a special way

    JT



  • Littletommy

    For the Media Remote/IR blaster No, I don't recall needing any drivers, XP SP2 recognised it right away.



  • nedium

    Thanks but I'ts still not reacting in ihdsim when I press CTRL+M, the guide has a list with VK_PLAY, VK_MENU etc, but when I use that the sim gives an error an exits.


  • hazz

    To work around the weird usb keyboard issues that ihdsim has, use the Media Center Remote with the IR dongle plugged into USB.

  • learnerplates

    Thanks, I noticed the alt thing its strange it also focuses the ihdsim's menu (File, Preferences, etc.) Hope a future version of the sim will fix this. Besides that it would be nice if MS would just let people download ihdsim.exe when a new version is released instead of the need for installing the whole jumpstart package again. But hey it's free :)

    iHD is very nice to play with, it's funny that it also uses a combination of Jscript and XML just like Sony's UMD video does, I would expect Blu-ray to have this but instead they choose java for it.

     

     


  • menu key