<?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: How to intercept Ctrl-V or paste command made by mouse context menu? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495727#M23898</link>
    <description>&lt;P&gt;Ok, I made other tests and indeed the CTRL-V is translated into a PASTECLIP command, normally.&lt;BR /&gt;The difference in my case is that I was trying to intercept the CTRL-V when a table cell is selected. In this case the CTRL-V is translated into a TABLEDIT command, not a PASTECLIP...&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jan 2019 13:54:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-01-02T13:54:19Z</dc:date>
    <item>
      <title>How to intercept Ctrl-V or paste command made by mouse context menu?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495471#M23893</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
&lt;P&gt;I'd like to intercept the generic paste command inside AutoCAD, and it's easy with the PASTECLIP command using the BeginCommand event... but this method does not intercept the ctrl-v sequence nor the paste issued through the mouse context menu...&lt;/P&gt;
&lt;P&gt;If I had a window I could try to override WndProc() and intercept the WM_PASTE message, but I'm inside the plugin windowless class...&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 11:02:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495471#M23893</guid>
      <dc:creator>m.cicognani</dc:creator>
      <dc:date>2019-01-02T11:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to intercept Ctrl-V or paste command made by mouse context menu?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495643#M23894</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me CommandWillStart catches the PASTECLIP command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        [CommandMethod("TESTCMD")]
        public static void TestCmd()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;
            doc.CommandWillStart += (_, e) =&amp;gt;
            {
                if (e.GlobalCommandName == "PASTECLIP")
                    Application.ShowAlertDialog(e.GlobalCommandName);
            };
        }&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:07:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495643#M23894</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-01-02T13:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to intercept Ctrl-V or paste command made by mouse context menu?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495650#M23895</link>
      <description>&lt;P&gt;Hi Giles,&lt;BR /&gt;yes, indeed, but it doesn't catch the CTRL+V nor, the mouse context menu... as I wrote in the message... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:12:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495650#M23895</guid>
      <dc:creator>m.cicognani</dc:creator>
      <dc:date>2019-01-02T13:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to intercept Ctrl-V or paste command made by mouse context menu?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495667#M23896</link>
      <description>&lt;P&gt;Yes it does, at least from the tests I did (A2014, A2017 and A2019).&lt;/P&gt;
&lt;P&gt;Did you try it?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:24:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495667#M23896</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-01-02T13:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to intercept Ctrl-V or paste command made by mouse context menu?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495694#M23897</link>
      <description>&lt;P&gt;Yes, of course... that's exactly how I intercept the pasteclip command when issued from the ribbon, the Edit menù or typed on the command window, but that event is not fired if I press CTRL+V, although the paste operation is indeed performed... weird...&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you intercept the mouse context Paste command too?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:37:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495694#M23897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-02T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to intercept Ctrl-V or paste command made by mouse context menu?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495727#M23898</link>
      <description>&lt;P&gt;Ok, I made other tests and indeed the CTRL-V is translated into a PASTECLIP command, normally.&lt;BR /&gt;The difference in my case is that I was trying to intercept the CTRL-V when a table cell is selected. In this case the CTRL-V is translated into a TABLEDIT command, not a PASTECLIP...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:54:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-intercept-ctrl-v-or-paste-command-made-by-mouse-context/m-p/8495727#M23898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-02T13:54:19Z</dc:date>
    </item>
  </channel>
</rss>

