HID keyboard - how to send Windows GUI key

Hi guys. May I ask some questions for ble_app_hids_keyboard_pca10056_s113 project from 17.1.0 nRF5 SDK:

 How to implement Ctrl-C for HID keyboard 

Similar to this thread, I was able to send [Windows + key] hotkeys, like Windows + R = "RUN" box.

As explained in the INFO center https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_hids_keyboard.html

"The format used for keyboard reports is the following byte array:

[modifier, reserved, Key1, Key2, Key3, Key4, Key6, Key7]"

Sending "Windows + R" is byte array = [Modifier = 0x08, 0x00, Key1 = 0x15 (R), 0x00, 0x00, 0x00, 0x00, 0x00]

 Windows / GUI key picture

The problem is when I send Left GUI key 0xE3 or Right GUI key 0xE7, Windows doesn't respond.

EX: send [0x00, 0x00, Key1 = 0xE3 (Left GUI), 0x00, 0x00, 0x00, 0x00, 0x00] and send key release

May I ask your help how to send the Windows key using the nRF52 keyboard example? If the HID report map needs to change, let me know.

Thank you for your help!

Parents
  • Hi,

    Could you try e.g. 0x08 as the left GUI modifier key instead of 0xE3

  • Hi Sigurd. Do you mean send

    [Modifier = 0x08, 0x00, Key1 = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]

    ? I tried but this doesn't work as well.

    Testing the Windows hotkey (Modifier 0x08 + Key1) is working though.

    What is the correct data format to "press the Windows key" to see the "Windows Start Menu"?

    Thank you for your help!

Reply
  • Hi Sigurd. Do you mean send

    [Modifier = 0x08, 0x00, Key1 = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]

    ? I tried but this doesn't work as well.

    Testing the Windows hotkey (Modifier 0x08 + Key1) is working though.

    What is the correct data format to "press the Windows key" to see the "Windows Start Menu"?

    Thank you for your help!

Children
  • Matthew K said:
    What is the correct data format to "press the Windows key" to see the "Windows Start Menu"?

    If you are not "modifying" anything, how about 0x00,0x00,0xE3 ?

  • Hi Sigurd. As mentioned in the first thread,

    The problem is when I send Left GUI key 0xE3 or Right GUI key 0xE7, Windows doesn't respond.

    Key press: 00 00 E3 00 00 00 00 00

    Release: 00 00 00 00 00 00 00 00

    I tried this but Windows didn't show the start menu.

    This start menu is NOT showing. Is there something I'm missing? Thank you for your help!

  • Hi,

    I got 0xE3 and 0xE7 working, but I needed to change the HID report map to allow this. i.e. Logical Maximum(101) / Usage Maximum (101) changed from 0x65 to 0xe7

  • Thank you so much Sigurd! Let's close this and have a great day!