EDD Posted June 4, 2007 Share Posted June 4, 2007 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 More sharing options...
Leagnus Posted June 4, 2007 Share Posted June 4, 2007 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 More sharing options...
Developers Jos Posted June 4, 2007 Developers Share Posted June 4, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now