Sign in to follow this  
Followers 0
quest

Run Application In Dos, But Want It Minimized?

3 posts in this topic

Hi,

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?

Regards,

Gary

Share this post


Link to post
Share on other sites



Hi,

See HelpFile

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

Parameters

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)

Regards,

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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!!!!

:(

Thanks

Regards,

Gary

Edited by quest

Share this post


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
Sign in to follow this  
Followers 0