<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: getting Function keys press in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/getting-Function-keys-press/m-p/978323#M25499</link>
    <description>F10 is considered a "system-reserved" key (similarly to Alt+F4 combination); a brief examination with spy++ shows that (in notepad at least, but not in VS, where it is mapped to something) F10 generates a WM_SYSKEYDOWN in child and WM_SYSCOMMAND/SC_KEYMENU in parent, i.e. it has the same effect as Alt, but, true, WM_KEYDOWN isn't received.  &lt;BR /&gt; &lt;BR /&gt;You might try installing a WH_KEYBOARD keyboard hook (I don't guarantee that will work with F10 either; i think it will). See sample at recent thread "QuickWin, Accelerator Keys".  &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
    <pubDate>Fri, 28 Dec 2001 03:18:43 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2001-12-28T03:18:43Z</dc:date>
    <item>
      <title>getting Function keys press</title>
      <link>https://community.intel.com/t5/Software-Archive/getting-Function-keys-press/m-p/978321#M25497</link>
      <description>I am trying to get function keys from key presses. &lt;BR /&gt;if I press F12, i is returned as 123 below, and F11 is returned as 122, etc, &lt;BR /&gt;but when I press F10 I don't get anything, it doesn't go to this routine. &lt;BR /&gt;I cannot think why F10 is treated differently (maybe it's something about my code?) &lt;BR /&gt;Any suggestions? &lt;BR /&gt;Thanks, &lt;BR /&gt;David &lt;BR /&gt;&lt;PRE&gt; 
lret=PeekMessage (msg,hWndMain,WM_KEYDOWN,WM_KEYDOWN,PM_NOREMOVE) 
if (lret) then 
	i=msg%wParam 
end if 
&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Dec 2001 21:21:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/getting-Function-keys-press/m-p/978321#M25497</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2001-12-27T21:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting Function keys press</title>
      <link>https://community.intel.com/t5/Software-Archive/getting-Function-keys-press/m-p/978322#M25498</link>
      <description>I did some more investigation on this and under WM_KEYDOWN  I found a mention that f10 is special. &lt;BR /&gt; &lt;BR /&gt;Default Action &lt;BR /&gt;If the f10 key is pressed, the DefWindowProc function sets an internal flag. When DefWindowProc receives the WM_KEYUP message, the function checks whether the internal flag is set and, if so, sends a WM_SYSCOMMAND message to the top-level window. The wParam parameter of the message is set to SC_KEYMENU.  &lt;BR /&gt; &lt;BR /&gt;I don't understand it. &lt;BR /&gt;How can I tell if f10 has been pressed? &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt;David</description>
      <pubDate>Thu, 27 Dec 2001 23:16:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/getting-Function-keys-press/m-p/978322#M25498</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2001-12-27T23:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: getting Function keys press</title>
      <link>https://community.intel.com/t5/Software-Archive/getting-Function-keys-press/m-p/978323#M25499</link>
      <description>F10 is considered a "system-reserved" key (similarly to Alt+F4 combination); a brief examination with spy++ shows that (in notepad at least, but not in VS, where it is mapped to something) F10 generates a WM_SYSKEYDOWN in child and WM_SYSCOMMAND/SC_KEYMENU in parent, i.e. it has the same effect as Alt, but, true, WM_KEYDOWN isn't received.  &lt;BR /&gt; &lt;BR /&gt;You might try installing a WH_KEYBOARD keyboard hook (I don't guarantee that will work with F10 either; i think it will). See sample at recent thread "QuickWin, Accelerator Keys".  &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Fri, 28 Dec 2001 03:18:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/getting-Function-keys-press/m-p/978323#M25499</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-12-28T03:18:43Z</dc:date>
    </item>
  </channel>
</rss>

