<?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: Help with SendMessage API in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Help-with-SendMessage-API/m-p/979225#M25677</link>
    <description>Should be &lt;CODE&gt;iret=SendMessage(hWnd, WM_KEYDOWN, VK_RETURN, 0) &lt;/CODE&gt; (perhaps 1 as last argument). I don't guarantee that the method will work though.</description>
    <pubDate>Wed, 09 Jan 2002 21:04:23 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2002-01-09T21:04:23Z</dc:date>
    <item>
      <title>Help with SendMessage API</title>
      <link>https://community.intel.com/t5/Software-Archive/Help-with-SendMessage-API/m-p/979224#M25676</link>
      <description>Hi, &lt;BR /&gt;I need to close a graphics window with a right mouse click option. Currently the window closes when I hot enter. I was advised by Leo quite some time back that I need to use the SendMessage API with WM_Keydown message with VK_Return as the virtual keycode. I have gotten this far but need help with the VK_Return implementation. Can anyone please guide a novice like me a little more. &lt;BR /&gt; &lt;BR /&gt;Thanks &lt;BR /&gt; &lt;BR /&gt;Sumit &lt;BR /&gt;&lt;PRE&gt;logi=.TRUE. &lt;BR /&gt;  do while(logi) &lt;BR /&gt; bret=waitonmouseevent(MOUSE$RBUTTONDOWN,keystate,ixpos,iypos) &lt;BR /&gt; if (keystate == MOUSE$KS_RBUTTON) then &lt;BR /&gt;iret= Messageboxqq('Close Window ?','Mouse Action'C,MB$ICONEXCLAMATION.OR.MB$YESNO) &lt;BR /&gt; IF(IRET == MB$IDYES) then !call exit() &lt;BR /&gt;    hWnd= GetHWNDQQ(5) &lt;BR /&gt; iret=Focusqq(5) &lt;BR /&gt; iret=SetActiveQQ(5) &lt;BR /&gt;iret=SendMessage(hWnD,WM_Keydown,0,0) &lt;BR /&gt;... &lt;BR /&gt; logi=.FALSE. &lt;BR /&gt; end if &lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jan 2002 03:07:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Help-with-SendMessage-API/m-p/979224#M25676</guid>
      <dc:creator>sumitm</dc:creator>
      <dc:date>2002-01-09T03:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SendMessage API</title>
      <link>https://community.intel.com/t5/Software-Archive/Help-with-SendMessage-API/m-p/979225#M25677</link>
      <description>Should be &lt;CODE&gt;iret=SendMessage(hWnd, WM_KEYDOWN, VK_RETURN, 0) &lt;/CODE&gt; (perhaps 1 as last argument). I don't guarantee that the method will work though.</description>
      <pubDate>Wed, 09 Jan 2002 21:04:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Help-with-SendMessage-API/m-p/979225#M25677</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2002-01-09T21:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SendMessage API</title>
      <link>https://community.intel.com/t5/Software-Archive/Help-with-SendMessage-API/m-p/979226#M25678</link>
      <description>Dear Jugoslav, &lt;BR /&gt; &lt;BR /&gt;Thanks for your response. It defintely encouraged me to think that I was on the right path. The following worked. Thanks again &lt;BR /&gt;&lt;PRE&gt;iret=SendMessage(hWnD,WM_IME_Keydown,VK_RETURN,0)&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2002 02:31:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Help-with-SendMessage-API/m-p/979226#M25678</guid>
      <dc:creator>sumitm</dc:creator>
      <dc:date>2002-01-10T02:31:08Z</dc:date>
    </item>
  </channel>
</rss>

