Jump to content

How to pass @SW_MINIMIZE to Run() in PHP


Guidance
 Share

Recommended Posts

$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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...