DaLiMan Posted November 5, 2004 Share Posted November 5, 2004 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..... Link to comment Share on other sites More sharing options...
scriptkitty Posted November 5, 2004 Share Posted November 5, 2004 (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 November 5, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
JSThePatriot Posted November 5, 2004 Share Posted November 5, 2004 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) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now