Jump to content

SW_HIDE problem


Recommended Posts

I'm using SW_HIDE to hide a program. it only works partially.

When i use the following code:

run("c:\StupidFax\StupidFax.exe" ,"",@SW_HIDE)

It executes the program but it wont hide it.

When i use the following code:

run("c:\StupidFax\StupidFax.exe")
WinWaitActive("StupidFax")
WinSetState("StupidFax","",@SW_HIDE)

It starts the program and he also hides it, but i stil got the program in the taskbar. When i click on the program nothing happens so it's not minimized and also not completly hidden.

Anyone who knows why it is not completly hidden, and how i can fix it?

Link to comment
Share on other sites

I'm using SW_HIDE to hide a program. it only works partially.

When i use the following code:

run("c:\StupidFax\StupidFax.exe" ,"",@SW_HIDE)

It executes the program but it wont hide it.

When i use the following code:

run("c:\StupidFax\StupidFax.exe")
WinWaitActive("StupidFax")
WinSetState("StupidFax","",@SW_HIDE)

It starts the program and he also hides it, but i stil got the program in the taskbar. When i click on the program nothing happens so it's not minimized and also not completly hidden.

Anyone who knows why it is not completly hidden, and how i can fix it?

I have similar trouble and 've decided it in complicated way by putting it in the tray objects collection -

Look here.

Link to comment
Share on other sites

  • Developers

It is a know fact that many Windows applications just show their Window anyways and doesn't have anything to do with AutoIt.

A work-around is what you did.. I would only use WinWait() in stead of WinWaitActive().

:)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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