Modify

#2467 closed Bug (No Bug)

SW_SHOWDEFAULT always return 10

Reported by: TommyDDR Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: Cc:

Description

@SW_SHOWDEFAULT always return 10.

Doc :
@SW_SHOWDEFAULT: Sets the show state based on the SW_ value specified by the program that started the application.

Compile script 1 (test.exe) :

ToolTip(@SW_SHOWDEFAULT, 0, 0)
Sleep(1000)

Run script 2 :

Run("test.exe", "", @SW_HIDE)

Result : Tooltip always display 10, whatever is sent at "Run" command.

Attachments (0)

Change History (3)

comment:1 by J-Paul Mesnage, on Sep 15, 2013 at 2:16:14 PM

Resolution: No Bug
Status: newclosed

Not sure why you compile the script but anyway you want to display a tooltip text of the value of @SW_SHOWDEFAULT.
So you get the answer it is 10

No Bug, always best to ask help from the forum before filling a trak report

comment:2 by anonymous, on Sep 15, 2013 at 2:33:23 PM

I compile the first script to be called by the second script.

Doc says :
@SW_SHOWDEFAULT: Sets the show state based on the SW_ value specified by the program that started the application.

So, if i Run the first script with "show_flag=@SW_HIDE", then the first script will display the value of "@SW_HIDE" wich is equals to 0 not 10.
I try it with different values in the "Run" command, and the first script always display 10.

comment:3 by TommyDDR, on Sep 15, 2013 at 8:02:20 PM

Ok, "For use with the WinSetState, Run, RunWait, FileCreateShortcut and FileGetShortcut functions"

Sorry...

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.