Hi, Martin. Just remove the WScript object, and call CreateObject directly. Window-Eyes, as the host, provides this method natively.
Thanks, Aaron -- Aaron Smith Web Development * App Development * Product Support Specialist Ai Squared * 725 Airport North Office Park, Fort Wayne, IN 46825 260-489-3671 * www.aisquared.com To insure that you receive proper support, please include all past correspondence (where applicable), and any relevant information pertinent to your situation when submitting a problem report to the Ai Squared Technical Support Team. > -----Original Message----- > From: Scripting [mailto:scripting- > [email protected]] On Behalf Of > Marten Post Uiterweer via Scripting > Sent: Thursday, April 2, 2015 6:01 PM > To: Window-Eyes Scripting List > Subject: start exe file from vbs > > Hi, > > When I start Becky mail, I want Window-eyes to start an autohotkey > scriptfile. It is an exe file I have created. > I can use WE to load the exe file, but It seems to give strange effects to > Window-Eyes, so it is better to load it another way. > I want WE to load a beckystart.vbs file and this vbs script will load the > becky > script exe file. > > I have found the below script and this will work when starting the vbs file, > but when loading it in Window-Eyes and starting it, It will not load. Window- > Eyes will not execute this script because of the wscript object. > Does anybody know how I can start an exe file from a vbs file? > > I have found the below script for visual basic: > Dim oShell > Set oShell = WScript.CreateObject ("WScript.Shell") oShell.run "becky.exe" > Set oShell = Nothing > > And yes: I can also make a autohotkey .exe file that will only load the > becky.exe scriptfile, but I want it in a vbs if possible. > > And I have created the autohotkey scriptfile for becky in autohotkey, so it > can also be used when using jaws or nvda etc. > > Regards, Marten > > _______________________________________________ > Any views or opinions presented in this email are solely those of the author > and do not necessarily represent those of Ai Squared. > > For membership options, visit http://lists.window- > eyes.com/options.cgi/scripting-window- > eyes.com/asmith%40aisquared.com. > For subscription options, visit http://lists.window- > eyes.com/listinfo.cgi/scripting-window-eyes.com > List archives can be found at http://lists.window- > eyes.com/private.cgi/scripting-window-eyes.com _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com
