Jump to content
Sign in to follow this  
EDD

SW_HIDE problem

Recommended Posts

EDD

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?

Share this post


Link to post
Share on other sites
Leagnus

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.

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  

×