Rick,
 
I see no reason why you need to kill the visual studio IDE process itself?
You only need to stop your own script.  A script never tries to stop the
process/program which it is related to.
 
Chip
 


  _____  

From: RicksPlace [mailto:[email protected]] 
Sent: Saturday, May 05, 2012 6:43 AM
To: [email protected]
Subject: Visual Studio Express Accessibility


Hi:
I was looking into shutting down a Process from within VB.net Express.
To ensure all Child-processes are shut down it appears folks usually use
something called the EnvDTE object.
This object also gives access to the running Process so you can do things
like click a button or change text in a TextBox from another Process like a
WindowEyes Script.
According to a member of the Microsoft Staff, a posting in a Blog, the
Express Versions do not expose the EnvDTE Object to third party applications
like a WindowEyes script.
This was a quote Business decission on the part of Microsoft.
This hampers using UIA, MSAA or any other method I know of to make the
Express versions of Visual Studio much more accessible than they are
already.
It also has thrown a monkey wrench into my plan to Kill the running Process
since Visual Studio, and I assume the Express versions, spawn other
processes that may be left hanging and running if the Main Process is Killed
without due process to the child processes if I read it correctly.
I can still make some things much more readable with UIA, MSAA and the WE
Object Model but not do much, if anything, that requires information from
the Underlying Visual Studio controls or any interaction with them via a
script.
At least that is my understanding of the problem so far.
Since Application.Exit doesnt work, it handles clean up and shut down
messages while kill doesn't,perhaps the shut down of a dummy form will work
as Aaron used in his original example.
I either have to find a way to work around a focus problem using a dummy
window if I can, figure out why Application.Exit doesn't work or find
another method of shutting the script down ensuring no objects or processes
are left     hanging.
I hope Microsoft knows this decission sucks for blind users of their free
Express Versions of Visual Studio that work  extremely well for sighted
users.
Later and I will be able to do a few things even without this missing
feature in the Visual Studio Express versions.
Rick USA

Reply via email to