<?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: Why the acedcommand() function don't work in my hook function? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/why-the-acedcommand-function-don-t-work-in-my-hook-function/m-p/1443356#M25407</link>
    <description>Thanks Owen Wengerd,I get it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Thu, 29 Sep 2005 01:53:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-09-29T01:53:38Z</dc:date>
    <item>
      <title>Why the acedcommand() function don't work in my hook function?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/why-the-acedcommand-function-don-t-work-in-my-hook-function/m-p/1443354#M25405</link>
      <description>Hi,&lt;BR /&gt;
When I use the acedRegisterWatchWinMsg() function , I implemente a hook &lt;BR /&gt;
function ,as follows,&lt;BR /&gt;
//--------------------------------------------&lt;BR /&gt;
bool msgFilterPro(const MSG*  pMsg)&lt;BR /&gt;
{&lt;BR /&gt;
 if( pMsg-&amp;gt;message == WM_KEYDOWN)&lt;BR /&gt;
 {&lt;BR /&gt;
  if( ( pMsg-&amp;gt;wParam == 90 ) )&lt;BR /&gt;
  {&lt;BR /&gt;
   if(::GetKeyState(VK_LCONTROL) )&lt;BR /&gt;
   {&lt;BR /&gt;
    if(acedCommand(RTSTR, "undo", RTSHORT,1,0)!=RTNORM)&lt;BR /&gt;
    {&lt;BR /&gt;
     acutPrintf("\n:(\n");&lt;BR /&gt;
     return false;&lt;BR /&gt;
    }&lt;BR /&gt;
    return true;&lt;BR /&gt;
   }&lt;BR /&gt;
  }&lt;BR /&gt;
 }&lt;BR /&gt;
 return false&lt;BR /&gt;
}&lt;BR /&gt;
//----------------------------------------------&lt;BR /&gt;
Why the acedcommand() function don't work!&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 27 Sep 2005 13:43:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/why-the-acedcommand-function-don-t-work-in-my-hook-function/m-p/1443354#M25405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-27T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why the acedcommand() function don't work in my hook function?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/why-the-acedcommand-function-don-t-work-in-my-hook-function/m-p/1443355#M25406</link>
      <description>&amp;gt; Why the acedcommand() function don't work!&lt;BR /&gt;
&lt;BR /&gt;
  I believe it only works in a document context.  Your code is executing in &lt;BR /&gt;
the application context.  Try using sendStringToExecute() instead. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Owen Wengerd&lt;BR /&gt;
President, ManuSoft ==&amp;gt; http://www.manusoft.com&lt;BR /&gt;
VP Americas, CADLock, Inc. ==&amp;gt; http://www.cadlock.com</description>
      <pubDate>Tue, 27 Sep 2005 15:23:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/why-the-acedcommand-function-don-t-work-in-my-hook-function/m-p/1443355#M25406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-27T15:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why the acedcommand() function don't work in my hook function?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/why-the-acedcommand-function-don-t-work-in-my-hook-function/m-p/1443356#M25407</link>
      <description>Thanks Owen Wengerd,I get it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 29 Sep 2005 01:53:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/why-the-acedcommand-function-don-t-work-in-my-hook-function/m-p/1443356#M25407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-09-29T01:53:38Z</dc:date>
    </item>
  </channel>
</rss>

