#2118 closed Bug (No Bug)
bug when launching a command Line program using @SW_HIDE
| Reported by: | Le solutionneur | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.8.0 | Severity: | None |
| Keywords: | @SW_HIDE flag run | Cc: |
Description
Using the command run(a"_command_line_program.exe", @ScriptDir, @SW_HIDE)
Don't works: the command line program don't launch but with
$pid = run(a"_command_line_program.exe", @ScriptDir)
$Name_of_window = Pid_to_name_of_the_window($pid)
WinSetState($Name_of_window, "", @SW_HIDE)
This one works flawlessly but the window shows up about half second.
I think it's a bug, the app should run even with the @SW_HIDE flag.
And that's not a problem of mine since the second version works.
Please fix it and thanks for support.
Attachments (0)
Change History (4)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
It's an application's choice whether it honors the show flag or not. Most applications do, some do not.
comment:4 by , 14 years ago
Additionals informations:
It should force the application to be hidden just like WinSetState (or a flag to decide to force it or no)
It's very annoying that many apps don't honor this and so we've to do the stuff I shown which make the window appear a few seconds.
Yet, it's an enhancement, not a bug anymore.

Care to provide a real-world failing example?
Which error do you get?