Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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 jchd, 14 years ago

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

comment:2 by Valik, 14 years ago

Resolution: No Bug
Status: newclosed

It's an application's choice whether it honors the show flag or not. Most applications do, some do not.

comment:3 by J-Paul Mesnage, 14 years ago

An example is SciTE editor which does not honor

comment:4 by Le solutionneur, 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.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.