Jump to content

RUN not hidden despite "@SW_HIDE" ...

Recommended Posts

I try to open the Printers Folders with the following line :

Run("RUNDLL32 SHELL32.DLL,SHHelpShortcuts_RunDLL PrintersFolder", "",@SW_HIDE)

It works well BUT ... the @SW_HIDE parameter is not taken in account ...

@SW_MINIMIZE and @SW_MAXIMIZE don't work properly either ...

any way to correct this behavior ?


Link to comment
Share on other sites

Run("RUNDLL32 SHELL32.DLL,SHHelpShortcuts_RunDLL PrintersFolder", "",@SW_HIDE)
WinWaitActive("Printers and Faxes","")
WinSetState("Printers and Faxes","",@SW_HIDE)

; just to let you see that it has been hidden

WinSetState("Printers and Faxes","",@SW_SHOW)
;just to let you close the window during this test snippet of code
You might still get a flash of that window, but it is all that I could think of as a work around...


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

  • Recently Browsing   0 members

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