Sign in to follow this  
Followers 0
DaLiMan

@SW_HIDE

3 posts in this topic

Hi,

When I run this code the app. doesn't hide?? :)

Any ideas why or how??

RunWait( @Comspec & " /c start Excel.exe ", "", @SW_HIDE)

It's almost a replica from the HELP file.....

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

It should hide only the Command interpreter, not Excel.

Command Interpreter spawns up Excel, and you didn't have it do so in a hidden window.

I guess my question is what is not hidden? the Black Dos box, or Excel?

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Yes the @SW_HIDE the way you are using it only hides the command/dos prompt window. If you want to do something with the Excel window then you may want to check out the start /? because it will show you different options you can use with that.

Another option would be to use the run to actually open the excel.exe (you would need the full path of the excel.exe) and then use the @SW_HIDE on the end of that and it will hide the excel window as there will be no other window to hide.

Here is an example...

Run("C:\Program Files\Microsoft Office\Office10\EXCEL.EXE", "", @SW_HIDE)

The above will hide your excel.exe.

Hope that helps,

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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