Jump to content

Hide All Following Windows


Recommended Posts

Hi folks

If I use something like

Run("Notepad.exe", "", @SW_HIDE)

the window is hidden.

But if I run for example

Run("rundll32.exe shell32.dll,Options_RunDLL 1", "", @SW_HIDE)

the windows is not hidden. I believe the @SW_HIDE command is only for the

rundll32.exe and not for the following windows.

Even If I set "WinWaitDelay" to 1 the window will popup for a short time. I want

to avoid this behaviour because nothing should be seen.

Is it possible to hide all following windows or is it planned in future releases of

Autoit?

For example:

Run("rundll32.exe shell32.dll,Options_RunDLL 1", "", @SW_HIDE_ALL)

Often it happens that I need this hidden feature but it is not possible to implement.

What's your opinion? I am looking forward to get some feedback :)

Thanks in advance.

Link to comment
Share on other sites

I don't think it is possible to implment because it is the program which you have run (rundll32.exe) which then runs other programs, whose windows are showing (or something like that).

One simple solution is to use WinSetState() on the other windows.

#)

Link to comment
Share on other sites

Yes of course I hide the appearing other windows with WinSetState(...).

But the that's the problem: Even though WinWaitDelay is set to 1 the window will flicker up for a short time.

It's only an aesthetic aspect but important for me ;)

I don't know about the Autoit and windows and internals but when it is possible to call hidden windows it has to be possible to call the other windows hidden, too, or am I wrong? I don't know :(:think:

Thx for your response :)

Regards

Link to comment
Share on other sites

I don't think it is possible to implment because it is the program which you have run (rundll32.exe) which then runs other programs, whose windows are showing (or something like that).

^^

Explaination (I think so)...

#)

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