The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 "RicksPlace" <ofbgmail@mi.rr.com>

Subject:

 Stopping An External Script

Date:

 Fri, May 4, 2012 8:05:20 am
This is a multi-part message in MIME format.

------=_NextPart_000_0003_01CD29CC.A69237C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi:
I am creating a script in VB.net 2008 for VB.net 2010.
I check the ProductName and attempt to close the script if it is not vb.net 2010 which opened it.
The Application.Exit() fires ok but the script is not stopped.
So:
I open vb.net 2008 to do some editing on the vbnet2010script, the ModuleName is something like VBNetExpress which is the same as it is in vb.net 2010.
WindowEyes sees the VBNet module name and starts the vb.net 2010 script:
In the vb.net 2010 script I check for the ProductName containing 2010:
Since it contains 2008 I execute Application.Exit()
I go into WE ScriptManager and the vb.net 2010 Script is not stopped.
How do I stop the script without closing the vb.net 2008 IDE?
Is there some way of preventing WE from opening it in the first place?
What about killing the script process?
If not sure I will experiment but if there is a means of doing this like the StopScript command in the script object that would be cleaner and more efficient, especially if done before the script loads.
Rick USA
------=_NextPart_000_0003_01CD29CC.A69237C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19170">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi:</FONT></DIV>
<DIV><FONT size=2 face=Arial>I am creating a script in VB.net 2008 for VB.net
2010.</FONT></DIV>
<DIV><FONT size=2 face=Arial>I check the ProductName and attempt to close the
script if it is not vb.net 2010 which opened it.</FONT></DIV>
<DIV><FONT size=2 face=Arial>The Application.Exit() fires ok but the script is
not stopped.</FONT></DIV>
<DIV><FONT size=2 face=Arial>So:</FONT></DIV>
<DIV><FONT size=2 face=Arial>I open vb.net 2008 to do some editing on the
vbnet2010script, the ModuleName is something like VBNetExpress which is the same
as it is in vb.net 2010.</FONT></DIV>
<DIV><FONT size=2 face=Arial>WindowEyes sees the VBNet module name and starts
the vb.net 2010 script:</FONT></DIV>
<DIV><FONT size=2 face=Arial>In the vb.net 2010 script I check for the
ProductName containing 2010:</FONT></DIV>
<DIV><FONT size=2 face=Arial>Since it contains 2008 I execute
Application.Exit()</FONT></DIV>
<DIV><FONT size=2 face=Arial>I go into WE ScriptManager and the&nbsp;
</FONT><FONT size=2 face=Arial>vb.net 2010 Script is not stopped.</FONT></DIV>
<DIV><FONT size=2 face=Arial>How do I stop the script without closing the vb.net
2008 IDE?</FONT></DIV>
<DIV><FONT size=2 face=Arial>Is there some way of preventing WE from opening it
in the first place?</FONT></DIV>
<DIV><FONT size=2 face=Arial>What about killing the script process?</FONT></DIV>
<DIV><FONT size=2 face=Arial>If not sure I will experiment but if there is a
means of doing this like the StopScript command in the script object that would
be cleaner and more efficient, especially if done before the script
loads.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Rick USA</FONT></DIV></BODY></HTML>

------=_NextPart_000_0003_01CD29CC.A69237C0--