<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308553#M61097</link>
    <description>Thanks Ray. That app seems to work fine but it's resulting class name&lt;BR /&gt;
doesn't seem to work as far as my code goes.&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ray Greene" &lt;RAYGR&gt; wrote in message&lt;BR /&gt;
news:6ohdkvgjeslumku3jogbbrgie8jdc90cs4@4ax.com...&lt;BR /&gt;
&amp;gt; On Fri, 22 Aug 2003 15:50:56 -0700, "Dale Levesque" &lt;DALE at=""&gt;&lt;BR /&gt;
&amp;gt; dynamicwindows.com&amp;gt; wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;In INNO setup I'd like to abort setup if AutoCAD is running. I would like&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; &amp;gt;use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt; &amp;gt;Longint;" to determine whether AutoCAD is running in the&lt;BR /&gt;
InitializeSetup()&lt;BR /&gt;
&amp;gt; &amp;gt;function. Does anyone know what window name to use for AutoCAD? Theres&lt;BR /&gt;
also&lt;BR /&gt;
&amp;gt; &amp;gt;a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt; &amp;gt;anyone knows the class name.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;D.M. Levesque&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You might want to try WinDowse from http://www.greatis.com/. It will&lt;BR /&gt;
&amp;gt; tell you the window name &amp;amp; class name of a running app, which you&lt;BR /&gt;
&amp;gt; should then be able to use in your code.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Ray Greene.&lt;/DALE&gt;&lt;/RAYGR&gt;</description>
    <pubDate>Mon, 25 Aug 2003 13:08:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-08-25T13:08:45Z</dc:date>
    <item>
      <title>Pascal Scripting with Inno Setup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308546#M61090</link>
      <description>In INNO setup I'd like to abort setup if AutoCAD is running. I would like to&lt;BR /&gt;
use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
Longint;" to determine whether AutoCAD is running in the InitializeSetup()&lt;BR /&gt;
function. Does anyone know what window name to use for AutoCAD? Theres also&lt;BR /&gt;
a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
anyone knows the class name.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone have any better suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
D.M. Levesque</description>
      <pubDate>Fri, 22 Aug 2003 14:50:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308546#M61090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-22T14:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pascal Scripting with Inno Setup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308547#M61091</link>
      <description>You don't have to go to that extents, not&lt;BR /&gt;
to mention that it doesn't work reliably&lt;BR /&gt;
since you can't count on exactly what the&lt;BR /&gt;
AutoCAD window's caption might be.&lt;BR /&gt;
&lt;BR /&gt;
You just need this:&lt;BR /&gt;
&lt;BR /&gt;
uses&lt;BR /&gt;
  ComObj, ActiveX;&lt;BR /&gt;
&lt;BR /&gt;
Function IsAutoCADRunning: Boolean;&lt;BR /&gt;
begin&lt;BR /&gt;
  Result := True;&lt;BR /&gt;
  try&lt;BR /&gt;
    GetActiveOleObject('AutoCAD.Application');&lt;BR /&gt;
  except&lt;BR /&gt;
    Result := False;&lt;BR /&gt;
  end;&lt;BR /&gt;
end;&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message&lt;BR /&gt;
news:B945D90D59C4344DDE818851539DEB13@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; In INNO setup I'd like to abort setup if AutoCAD is running. I would like to&lt;BR /&gt;
&amp;gt; use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt; Longint;" to determine whether AutoCAD is running in the InitializeSetup()&lt;BR /&gt;
&amp;gt; function. Does anyone know what window name to use for AutoCAD? Theres also&lt;BR /&gt;
&amp;gt; a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt; anyone knows the class name.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; D.M. Levesque&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DALE&gt;</description>
      <pubDate>Fri, 22 Aug 2003 14:50:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308547#M61091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-22T14:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pascal Scripting with Inno Setup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308548#M61092</link>
      <description>On Fri, 22 Aug 2003 15:50:56 -0700, "Dale Levesque" &lt;DALE at=""&gt;&lt;BR /&gt;
dynamicwindows.com&amp;gt; wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;In INNO setup I'd like to abort setup if AutoCAD is running. I would like to&lt;BR /&gt;
&amp;gt;use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt;Longint;" to determine whether AutoCAD is running in the InitializeSetup()&lt;BR /&gt;
&amp;gt;function. Does anyone know what window name to use for AutoCAD? Theres also&lt;BR /&gt;
&amp;gt;a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt;anyone knows the class name.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;D.M. Levesque&lt;BR /&gt;
&lt;BR /&gt;
You might want to try WinDowse from http://www.greatis.com/. It will&lt;BR /&gt;
tell you the window name &amp;amp; class name of a running app, which you&lt;BR /&gt;
should then be able to use in your code.&lt;BR /&gt;
&lt;BR /&gt;
Ray Greene.&lt;/DALE&gt;</description>
      <pubDate>Fri, 22 Aug 2003 17:48:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308548#M61092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-22T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pascal Scripting with Inno Setup</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308549#M61093</link>
      <description>You don't have to go to that extents, not&lt;BR /&gt;
to mention that it doesn't work reliably&lt;BR /&gt;
since you can't count on exactly what the&lt;BR /&gt;
AutoCAD window's caption might be.&lt;BR /&gt;
&lt;BR /&gt;
You just need this:&lt;BR /&gt;
&lt;BR /&gt;
uses&lt;BR /&gt;
  ComObj, ActiveX;&lt;BR /&gt;
&lt;BR /&gt;
Function IsAutoCADRunning: Boolean;&lt;BR /&gt;
begin&lt;BR /&gt;
  Result := True;&lt;BR /&gt;
  try&lt;BR /&gt;
    GetActiveOleObject('AutoCAD.Application');&lt;BR /&gt;
  except&lt;BR /&gt;
    Result := False;&lt;BR /&gt;
  end;&lt;BR /&gt;
end;&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message&lt;BR /&gt;
news:B945D90D59C4344DDE818851539DEB13@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; In INNO setup I'd like to abort setup if AutoCAD is running. I would like to&lt;BR /&gt;
&amp;gt; use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt; Longint;" to determine whether AutoCAD is running in the InitializeSetup()&lt;BR /&gt;
&amp;gt; function. Does anyone know what window name to use for AutoCAD? Theres also&lt;BR /&gt;
&amp;gt; a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt; anyone knows the class name.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; D.M. Levesque&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DALE&gt;</description>
      <pubDate>Fri, 22 Aug 2003 19:00:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308549#M61093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-22T19:00:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308550#M61094</link>
      <description>Thanks!&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO at="" caddzone="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:9D8AE4534168A0240A8C0538F326608C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; You don't have to go to that extents, not&lt;BR /&gt;
&amp;gt; to mention that it doesn't work reliably&lt;BR /&gt;
&amp;gt; since you can't count on exactly what the&lt;BR /&gt;
&amp;gt; AutoCAD window's caption might be.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You just need this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; uses&lt;BR /&gt;
&amp;gt;   ComObj, ActiveX;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Function IsAutoCADRunning: Boolean;&lt;BR /&gt;
&amp;gt; begin&lt;BR /&gt;
&amp;gt;   Result := True;&lt;BR /&gt;
&amp;gt;   try&lt;BR /&gt;
&amp;gt;     GetActiveOleObject('AutoCAD.Application');&lt;BR /&gt;
&amp;gt;   except&lt;BR /&gt;
&amp;gt;     Result := False;&lt;BR /&gt;
&amp;gt;   end;&lt;BR /&gt;
&amp;gt; end;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -- &lt;BR /&gt;
&amp;gt; http://www.acadxtabs.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:B945D90D59C4344DDE818851539DEB13@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; In INNO setup I'd like to abort setup if AutoCAD is running. I would&lt;BR /&gt;
like to&lt;BR /&gt;
&amp;gt; &amp;gt; use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt; &amp;gt; Longint;" to determine whether AutoCAD is running in the&lt;BR /&gt;
InitializeSetup()&lt;BR /&gt;
&amp;gt; &amp;gt; function. Does anyone know what window name to use for AutoCAD? Theres&lt;BR /&gt;
also&lt;BR /&gt;
&amp;gt; &amp;gt; a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt; &amp;gt; anyone knows the class name.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; D.M. Levesque&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DALE&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Mon, 25 Aug 2003 07:56:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308550#M61094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-25T07:56:36Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308551#M61095</link>
      <description>Thanks again Tony but one question. I'm very new to Pascal scripting and I'm&lt;BR /&gt;
unsure as to how to indicate that the function requires ComObj and ActiveX.&lt;BR /&gt;
&lt;BR /&gt;
I tried pasting:&lt;BR /&gt;
&lt;BR /&gt;
uses&lt;BR /&gt;
 ComObj, ActiveX;&lt;BR /&gt;
&lt;BR /&gt;
just above the function but that didn't work.&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO at="" caddzone="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:ECAF9CC8F8960FC74C6D3BB713523EDE@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; You don't have to go to that extents, not&lt;BR /&gt;
&amp;gt; to mention that it doesn't work reliably&lt;BR /&gt;
&amp;gt; since you can't count on exactly what the&lt;BR /&gt;
&amp;gt; AutoCAD window's caption might be.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You just need this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; uses&lt;BR /&gt;
&amp;gt;   ComObj, ActiveX;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Function IsAutoCADRunning: Boolean;&lt;BR /&gt;
&amp;gt; begin&lt;BR /&gt;
&amp;gt;   Result := True;&lt;BR /&gt;
&amp;gt;   try&lt;BR /&gt;
&amp;gt;     GetActiveOleObject('AutoCAD.Application');&lt;BR /&gt;
&amp;gt;   except&lt;BR /&gt;
&amp;gt;     Result := False;&lt;BR /&gt;
&amp;gt;   end;&lt;BR /&gt;
&amp;gt; end;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -- &lt;BR /&gt;
&amp;gt; http://www.acadxtabs.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:B945D90D59C4344DDE818851539DEB13@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; In INNO setup I'd like to abort setup if AutoCAD is running. I would&lt;BR /&gt;
like to&lt;BR /&gt;
&amp;gt; &amp;gt; use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt; &amp;gt; Longint;" to determine whether AutoCAD is running in the&lt;BR /&gt;
InitializeSetup()&lt;BR /&gt;
&amp;gt; &amp;gt; function. Does anyone know what window name to use for AutoCAD? Theres&lt;BR /&gt;
also&lt;BR /&gt;
&amp;gt; &amp;gt; a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt; &amp;gt; anyone knows the class name.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; D.M. Levesque&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DALE&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Mon, 25 Aug 2003 09:05:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308551#M61095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-25T09:05:22Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308552#M61096</link>
      <description>Hi Tony,&lt;BR /&gt;
&lt;BR /&gt;
Apparently Inno Setup does not allow the use of "uses" in it's [CODE]&lt;BR /&gt;
section. Thanks anyway for the help.&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO at="" caddzone="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:ECAF9CC8F8960FC74C6D3BB713523EDE@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; You don't have to go to that extents, not&lt;BR /&gt;
&amp;gt; to mention that it doesn't work reliably&lt;BR /&gt;
&amp;gt; since you can't count on exactly what the&lt;BR /&gt;
&amp;gt; AutoCAD window's caption might be.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You just need this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; uses&lt;BR /&gt;
&amp;gt;   ComObj, ActiveX;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Function IsAutoCADRunning: Boolean;&lt;BR /&gt;
&amp;gt; begin&lt;BR /&gt;
&amp;gt;   Result := True;&lt;BR /&gt;
&amp;gt;   try&lt;BR /&gt;
&amp;gt;     GetActiveOleObject('AutoCAD.Application');&lt;BR /&gt;
&amp;gt;   except&lt;BR /&gt;
&amp;gt;     Result := False;&lt;BR /&gt;
&amp;gt;   end;&lt;BR /&gt;
&amp;gt; end;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -- &lt;BR /&gt;
&amp;gt; http://www.acadxtabs.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:B945D90D59C4344DDE818851539DEB13@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; In INNO setup I'd like to abort setup if AutoCAD is running. I would&lt;BR /&gt;
like to&lt;BR /&gt;
&amp;gt; &amp;gt; use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt; &amp;gt; Longint;" to determine whether AutoCAD is running in the&lt;BR /&gt;
InitializeSetup()&lt;BR /&gt;
&amp;gt; &amp;gt; function. Does anyone know what window name to use for AutoCAD? Theres&lt;BR /&gt;
also&lt;BR /&gt;
&amp;gt; &amp;gt; a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt; &amp;gt; anyone knows the class name.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; D.M. Levesque&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DALE&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Mon, 25 Aug 2003 12:15:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308552#M61096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-25T12:15:43Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308553#M61097</link>
      <description>Thanks Ray. That app seems to work fine but it's resulting class name&lt;BR /&gt;
doesn't seem to work as far as my code goes.&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ray Greene" &lt;RAYGR&gt; wrote in message&lt;BR /&gt;
news:6ohdkvgjeslumku3jogbbrgie8jdc90cs4@4ax.com...&lt;BR /&gt;
&amp;gt; On Fri, 22 Aug 2003 15:50:56 -0700, "Dale Levesque" &lt;DALE at=""&gt;&lt;BR /&gt;
&amp;gt; dynamicwindows.com&amp;gt; wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;In INNO setup I'd like to abort setup if AutoCAD is running. I would like&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; &amp;gt;use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt; &amp;gt;Longint;" to determine whether AutoCAD is running in the&lt;BR /&gt;
InitializeSetup()&lt;BR /&gt;
&amp;gt; &amp;gt;function. Does anyone know what window name to use for AutoCAD? Theres&lt;BR /&gt;
also&lt;BR /&gt;
&amp;gt; &amp;gt;a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt; &amp;gt;anyone knows the class name.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;D.M. Levesque&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You might want to try WinDowse from http://www.greatis.com/. It will&lt;BR /&gt;
&amp;gt; tell you the window name &amp;amp; class name of a running app, which you&lt;BR /&gt;
&amp;gt; should then be able to use in your code.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Ray Greene.&lt;/DALE&gt;&lt;/RAYGR&gt;</description>
      <pubDate>Mon, 25 Aug 2003 13:08:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308553#M61097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-25T13:08:45Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308554#M61098</link>
      <description>The Pascal script that's being used in Inno Setup 4 (which is&lt;BR /&gt;
what I assume you're using) doesn't support ActiveX or 'uses",&lt;BR /&gt;
so what I showed isn't going to work. I didn't even know that&lt;BR /&gt;
version 4 had it, but it's still beta anyway.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message&lt;BR /&gt;
news:5F6887F4F56BE15095D9AC7701ABEAB7@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi Tony,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Apparently Inno Setup does not allow the use of "uses" in it's [CODE]&lt;BR /&gt;
&amp;gt; section. Thanks anyway for the help.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Dale&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Tony Tanzillo" &lt;TONY.TANZILLO at="" caddzone="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:ECAF9CC8F8960FC74C6D3BB713523EDE@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; You don't have to go to that extents, not&lt;BR /&gt;
&amp;gt; &amp;gt; to mention that it doesn't work reliably&lt;BR /&gt;
&amp;gt; &amp;gt; since you can't count on exactly what the&lt;BR /&gt;
&amp;gt; &amp;gt; AutoCAD window's caption might be.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; You just need this:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; uses&lt;BR /&gt;
&amp;gt; &amp;gt;   ComObj, ActiveX;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Function IsAutoCADRunning: Boolean;&lt;BR /&gt;
&amp;gt; &amp;gt; begin&lt;BR /&gt;
&amp;gt; &amp;gt;   Result := True;&lt;BR /&gt;
&amp;gt; &amp;gt;   try&lt;BR /&gt;
&amp;gt; &amp;gt;     GetActiveOleObject('AutoCAD.Application');&lt;BR /&gt;
&amp;gt; &amp;gt;   except&lt;BR /&gt;
&amp;gt; &amp;gt;     Result := False;&lt;BR /&gt;
&amp;gt; &amp;gt;   end;&lt;BR /&gt;
&amp;gt; &amp;gt; end;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; -- &lt;BR /&gt;
&amp;gt; &amp;gt; http://www.acadxtabs.com&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:B945D90D59C4344DDE818851539DEB13@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; In INNO setup I'd like to abort setup if AutoCAD is running. I would&lt;BR /&gt;
&amp;gt; like to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; use the function "FindWindowByWindowName(const WindowName: String):&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Longint;" to determine whether AutoCAD is running in the&lt;BR /&gt;
&amp;gt; InitializeSetup()&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; function. Does anyone know what window name to use for AutoCAD? Theres&lt;BR /&gt;
&amp;gt; also&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; a FindWindowByClassName(const ClassName: String): Longint;" function if&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; anyone knows the class name.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Does anyone have any better suggestions?&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; D.M. Levesque&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DALE&gt;&lt;/TONY.TANZILLO&gt;&lt;/DALE&gt;</description>
      <pubDate>Tue, 26 Aug 2003 05:29:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pascal-scripting-with-inno-setup/m-p/308554#M61098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-26T05:29:10Z</dc:date>
    </item>
  </channel>
</rss>

