Jump to content

Run Application In Dos, But Want It Minimized?

Recommended Posts


I have been trying all morning to get a DOS speech program to output text BUT without showing the DOS window?

This is the line I have at moment:

RunWait ('"C:\Program Files\Dsay\DSAY.EXE" HELLO WORLD')

HELLO WORLD is the text to output

Any parameters that I type after HELLO WORLD is actually pronounced, please where am i going wrong?



Link to post
Share on other sites


See HelpFile

RunWait ( "filename" [, "workingdir" [, flag]] )


filename The name of the executable (EXE, BAT, COM, PIF) to run.

workingdir [optional] The working directory.

flag [optional] The "show" flag of the executed program:

@SW_HIDE = Hidden window

@SW_MINIMIZE = Minimized window

@SW_MAXIMIZE = Maximized window

Return Value

Success: Returns the exit code of the program that was run.

Failure: Depends on RunErrorsFatal; see Remarks.

so in your case : RunWait("C:\Program Files\Dsay\DSAY.EXE HELLO WORLD","",@SW_HIDE)



What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Link to post
Share on other sites

Hi Andre,

Thats got it working........... that was the command I was trying to get working, i tried all combinations!

It was the " " bit I missed AND removal of ' ' surrounding the line.

The hours I spent on that, I tried to do it without help :ph34r:

Post on here and solved in minutes!!!!





Edited by quest
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...