<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HID keyboard - how to send Windows GUI key</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97439/hid-keyboard---how-to-send-windows-gui-key</link><description>Hi guys. May I ask some questions for ble_app_hids_keyboard_pca10056_s113 project from 17.1.0 nRF5 SDK: 
 
 Similar to this thread, I was able to send [Windows + key] hotkeys, like Windows + R = &amp;quot;RUN&amp;quot; box. 
 As explained in the INFO center https://infocenter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Mar 2023 04:34:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97439/hid-keyboard---how-to-send-windows-gui-key" /><item><title>RE: HID keyboard - how to send Windows GUI key</title><link>https://devzone.nordicsemi.com/thread/415359?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 04:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037d20c6-4d1c-483b-9f9a-cf4f46cc39ff</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Thank you so much Sigurd! Let&amp;#39;s close this and have a great day!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard - how to send Windows GUI key</title><link>https://devzone.nordicsemi.com/thread/415028?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 00:00:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e67540de-0bc5-4cc3-97c7-2b1c088901e2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got 0xE3 and 0xE7 working, but I needed to change the HID report map to allow this. i.e.&amp;nbsp;Logical Maximum(101) / Usage Maximum (101) changed from 0x65 to 0xe7&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    static uint8_t                     report_map_data[] =
    {
        0x05, 0x01,       // Usage Page (Generic Desktop)
        0x09, 0x06,       // Usage (Keyboard)
        0xA1, 0x01,       // Collection (Application)
        0x05, 0x07,       // Usage Page (Key Codes)
        0x19, 0xe0,       // Usage Minimum (224)
        0x29, 0xe7,       // Usage Maximum (231)
        0x15, 0x00,       // Logical Minimum (0)
        0x25, 0x01,       // Logical Maximum (1)
        0x75, 0x01,       // Report Size (1)
        0x95, 0x08,       // Report Count (8)
        0x81, 0x02,       // Input (Data, Variable, Absolute)

        0x95, 0x01,       // Report Count (1)
        0x75, 0x08,       // Report Size (8)
        0x81, 0x01,       // Input (Constant) reserved byte(1)

        0x95, 0x05,       // Report Count (5)
        0x75, 0x01,       // Report Size (1)
        0x05, 0x08,       // Usage Page (Page# for LEDs)
        0x19, 0x01,       // Usage Minimum (1)
        0x29, 0x05,       // Usage Maximum (5)
        0x91, 0x02,       // Output (Data, Variable, Absolute), Led report
        0x95, 0x01,       // Report Count (1)
        0x75, 0x03,       // Report Size (3)
        0x91, 0x01,       // Output (Data, Variable, Absolute), Led report padding

        0x95, 0x06,       // Report Count (6)
        0x75, 0x08,       // Report Size (8)
        0x15, 0x00,       // Logical Minimum (0)
        0x25, 0xe7,       // Logical Maximum (101) // changed from 0x65 to 0xe7
        0x05, 0x07,       // Usage Page (Key codes)
        0x19, 0x00,       // Usage Minimum (0)
        0x29, 0xe7,       // Usage Maximum (101) // changed from 0x65 to 0xe7
        0x81, 0x00,       // Input (Data, Array) Key array(6 bytes)

        0x09, 0x05,       // Usage (Vendor Defined)
        0x15, 0x00,       // Logical Minimum (0)
        0x26, 0xFF, 0x00, // Logical Maximum (255)
        0x75, 0x08,       // Report Size (8 bit)
        0x95, 0x02,       // Report Count (2)
        0xB1, 0x02,       // Feature (Data, Variable, Absolute)

        0xC0              // End Collection (Application)
    };&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard - how to send Windows GUI key</title><link>https://devzone.nordicsemi.com/thread/414998?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 16:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b66dc66e-97ca-476c-bbf9-49183a54cd2b</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Hi Sigurd. As mentioned in the first thread,&lt;/p&gt;
[quote userid="26837" url="~/f/nordic-q-a/97439/hid-keyboard---how-to-send-windows-gui-key"]The problem is when I send Left GUI key 0xE3 or Right GUI key 0xE7, Windows doesn&amp;#39;t respond.[/quote]
&lt;p&gt;Key press: 00 00 &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;E3&lt;/strong&gt;&lt;/span&gt; 00 00 00 00 00&lt;/p&gt;
&lt;p&gt;Release: 00 00 &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;00&lt;/strong&gt;&lt;/span&gt; 00 00 00 00 00&lt;/p&gt;
&lt;p&gt;I tried this but Windows didn&amp;#39;t show the start menu.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://i.pcmag.com/imagery/articles/04UeCgzKVJ5x3Y3kij4jSoP-26..v1668004744.png" /&gt;&lt;/p&gt;
&lt;p&gt;This start menu is NOT showing. Is there something I&amp;#39;m missing? Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard - how to send Windows GUI key</title><link>https://devzone.nordicsemi.com/thread/414881?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 11:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84e52512-732c-4dcb-b360-51bd9a0bbcfc</guid><dc:creator>Sigurd</dc:creator><description>[quote user="MatthewKYEO"]What is the correct data format to &amp;quot;press the Windows key&amp;quot; to see the &amp;quot;Windows Start Menu&amp;quot;?[/quote]
&lt;p&gt;If you are not &amp;quot;modifying&amp;quot; anything, how about 0x00,0x00,0xE3 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard - how to send Windows GUI key</title><link>https://devzone.nordicsemi.com/thread/414160?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 14:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f4d48d-397f-43cb-a47b-6970352ebdb7</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Hi Sigurd. Do you mean send&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[Modifier = 0x08, 0x00, Key1 = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;? I tried but this doesn&amp;#39;t work as well.&lt;/p&gt;
&lt;p&gt;Testing the Windows hotkey (Modifier 0x08 + Key1) is working though.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://i.pcmag.com/imagery/articles/04UeCgzKVJ5x3Y3kij4jSoP-26..v1668004744.png" /&gt;&lt;/p&gt;
&lt;p&gt;What is the correct data format to &amp;quot;press the Windows key&amp;quot; to see the &amp;quot;Windows Start Menu&amp;quot;?&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard - how to send Windows GUI key</title><link>https://devzone.nordicsemi.com/thread/414116?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 12:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccea9357-a0da-482f-9e35-dc522419d00f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try e.g.&amp;nbsp;0x08 as the left GUI modifier key instead of 0xE3&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  APP_USBD_HID_KBD_MODIFIER_NONE = 0x00,
  APP_USBD_HID_KBD_MODIFIER_LEFT_CTRL = 0x01,
  APP_USBD_HID_KBD_MODIFIER_LEFT_SHIFT = 0x02,
  APP_USBD_HID_KBD_MODIFIER_LEFT_ALT = 0x04,
  APP_USBD_HID_KBD_MODIFIER_LEFT_UI = 0x08,
  APP_USBD_HID_KBD_MODIFIER_RIGHT_CTRL = 0x10,
  APP_USBD_HID_KBD_MODIFIER_RIGHT_SHIFT = 0x20,
  APP_USBD_HID_KBD_MODIFIER_RIGHT_ALT = 0x40,
  APP_USBD_HID_KBD_MODIFIER_RIGHT_UI = 0x80&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>