Hi Again Marten,

This is my Clipboard program that fetches the Clipboard item, data or file list and is based on the command line parameter passed into the routine. So, you have the usage of the program to run full screen and now one that calls another program with a command line option. There is also a starting path that can be inserted into the call function.

       Bruce

Sub LaunchClipPy( typeClip)
Dim winType: wintype = 0 '3 ' Activates the window and displays it as a maximized window.
Dim WshShell
' Set WshShell = CreateObject("WScript.Shell")
Set WshShell = CreateObject("Shell.Application")
Dim FileName, ReturnCode, Wait: Wait = True
' WshShell.ShellExecute (clientPathToWav & "CuckooRecordAndPlayWav\RecordAndPlay.exe", theWavFile, scriptPathToWav, "open", winType) ', "runas" ReturnCode = WshShell.ShellExecute (ClipProgram, typeClip, "", "open", winType) '"runas", winType)
Set WshShell = Nothing
Set winType = Nothing
Set ReturnCode = Nothing
End Sub


Sent: Thursday, April 02, 2015 6:01 PM
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/lab4me%40fltg.net. 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


---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.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

Reply via email to