Jump to content

How to make ShellExecute not take focus?


Recommended Posts

Link to comment
Share on other sites

Actually, take a look here: http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx

I guess the AutoIt ShellExecute simply calls the underlying Windows API. In which case, you can use 7 as the last parameter for SW_SHOWMINNOACTIVE. Then I guess you'd need to find the window and hide it. Try it:

ShellExecute("notepad.exe", "", "", "", 7)

WBD

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