Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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 Changed 6 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

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 Changed 6 years ago by anonymous

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 Changed 6 years ago by TommyDDR

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

Sorry...

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.