Guidance Posted January 7, 2013 Share Posted January 7, 2013 $shell=new COM("AutoItX3.Control");$shell->Run($exe,$workingdir,'@SW_MINIMIZE'); // didn't work?How to pass pre-defined constant @SW_MINIMIZE to Run() with PHP COM interface, called in PHP CLI?The doc said: show_flag [optional] The "show" flag of the executed program: @SW_HIDE = Hidden window (or Default keyword) @SW_MINIMIZE = Minimized window @SW_MAXIMIZE = Maximized window Does it mean omit the third argument or default is @SW_HIDE? What is SW_HIDE mean here? Actually, I want the called exe (a command line program) didn't pop-up the command line window, but run minimized quitely. I tried didn't give the show_flag at all, it just opened the command line window in the middle of the screen on top of all other windows. Link to comment Share on other sites More sharing options...
JohnOne Posted January 7, 2013 Share Posted January 7, 2013 SW_HIDE = 0 SW_MINIMIZ = 6 SW_MAXIMIZE = 3 http://msdn.microsoft.com/en-gb/library/windows/desktop/ms633548(v=vs.85).aspx AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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