<?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: AutoCAD Steals Focus While Visible Is False and WindowState Is Minimized? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3734158#M52097</link>
    <description>&lt;P&gt;I think you're referring to the desktop registry setting which disables applications from stealing active window focus. This is already set to not allow applications to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite sure this is an AutoCAD issue, no other program that I've automated shares this behaviour (Excel, Word, Visio, etc...). It's unforunate that there doesn't seem to be a way to stop it.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Dec 2012 18:13:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-12-12T18:13:55Z</dc:date>
    <item>
      <title>AutoCAD Steals Focus While Visible Is False and WindowState Is Minimized?</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3730360#M52095</link>
      <description>&lt;P&gt;I am running some background automation on AutoCAD (2012 if it matters) and I am running into an annoying issue where even when AutoCAD's visibility is set to false and it's window state is minimized it still grabs focus when a drawing opens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.autoCadApplication.WindowState =&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af;"&gt;AcWindowState&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.acMin&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;.autoCadApplication.Visible =&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;False&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to fix this? It makes my computer unusable when the automation runs.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2012 17:33:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3730360#M52095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-10T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD Steals Focus While Visible Is False and WindowState Is Minimized?</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3734122#M52096</link>
      <description>&lt;P&gt;I don't think there is alot you can do via AutoCAD to control that. I think it's more of a Windows setup issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I vaguely remember that there was a setting which allowed you to control how the focus&amp;nbsp;reacted for&amp;nbsp;programs starting up in Windows but I can't find it now. I'm sure some dedicated internet searching will dig this information up.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 18:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3734122#M52096</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2012-12-12T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD Steals Focus While Visible Is False and WindowState Is Minimized?</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3734158#M52097</link>
      <description>&lt;P&gt;I think you're referring to the desktop registry setting which disables applications from stealing active window focus. This is already set to not allow applications to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite sure this is an AutoCAD issue, no other program that I've automated shares this behaviour (Excel, Word, Visio, etc...). It's unforunate that there doesn't seem to be a way to stop it.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 18:13:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3734158#M52097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-12T18:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD Steals Focus While Visible Is False and WindowState Is Minimized?</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3736138#M52098</link>
      <description>&lt;P&gt;FYI - I'm looking into this for you... I need to make sure that I'm on the same page as you before moving forward with this - do you have a&amp;nbsp;build able sample project that I can refer to please?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 18:36:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3736138#M52098</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2012-12-13T18:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD Steals Focus While Visible Is False and WindowState Is Minimized?</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3736176#M52099</link>
      <description>&lt;P&gt;Thank you for looking into this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could upload a sample if you need, but all I am really doing is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Gettting an instance of AutoCAD (2012).&lt;/LI&gt;&lt;LI&gt;Setting &lt;STRONG&gt;Visible&lt;/STRONG&gt; to False and setting &lt;STRONG&gt;WindowState&lt;/STRONG&gt; to acMin on the Application object (like first post).&lt;/LI&gt;&lt;LI&gt;Looping through a data set with push information.&lt;/LI&gt;&lt;LI&gt;Opening a series of templates 1-by-1 and pushing the associated information onto the template and then "Save As-ing" it to a file and continuing.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;While an application with the above structure runs, AutoCAD will steal focus everytime the next document is opened. So if you were typing in a window you would get about 1-2 seconds of time in that window before AutoCAD would steal focus back and you would be forced to refocus the window you were just on.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 18:52:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3736176#M52099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-13T18:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD Steals Focus While Visible Is False and WindowState Is Minimized?</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3736920#M52100</link>
      <description>&lt;P&gt;Have you tried it &lt;EM&gt;&lt;STRONG&gt;without&lt;/STRONG&gt;&lt;/EM&gt; setting the window state to minimized?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 05:17:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3736920#M52100</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2012-12-14T05:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD Steals Focus While Visible Is False and WindowState Is Minimized?</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3738708#M52101</link>
      <description>&lt;P&gt;Without a sample, I cannot proceed... if you do not want to post a sample, then you will have to control the focus with your own Win32 application code to bypass the issues.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2012 01:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-steals-focus-while-visible-is-false-and-windowstate-is/m-p/3738708#M52101</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2012-12-18T01:12:13Z</dc:date>
    </item>
  </channel>
</rss>

