#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 , 12 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , 12 years ago
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 , 12 years ago
Ok, "For use with the WinSetState, Run, RunWait, FileCreateShortcut and FileGetShortcut functions"
Sorry...

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