Opened 11 years ago
Closed 11 years ago
#2526 closed Feature Request (Wont Fix)
Window Titles and Text (Advanced) >> Title = '' (Blank) == [Active] ??
Reported by: | mlipok | Owned by: | |
---|---|---|---|
Milestone: | Component: | Documentation | |
Version: | Severity: | None | |
Keywords: | Cc: |
Description
Please consider to add description about blank Title.
At the moment, the use of blank Title I mena = is interpreted by AutoIt as [Active]
Repro code:
WinActivate('AutoIt Help') $sTitle = WinGetTitle('') ConsoleWrite('$sTitle = ' & $sTitle & @CRLF)
Attachments (0)
Change History (8)
comment:1 Changed 11 years ago by mlipok
comment:3 Changed 11 years ago by Melba23
The Help already quite clearly says:
If multiple windows match the criteria, the window that was most recently active is the one activated.
As all windows will match when the title is set to "", it is obvious that the active one will be returned. I see no reason to amend the comment.
M23
comment:4 Changed 11 years ago by mlipok
I did a quick review.
I found the text you designated.
This description is only in:
WinActivate.txt WinClose.txt WinGetClassList.txt WinGetClientSize.txt WinGetPos.txt WinGetText.txt WinGetTitle.txt WinMove.txt WinSetState.txt WinSetTitle.txt
There is a lack of information in other files:
WinActive.txt WinExists.txt WinFlash.txt WinGetCaretPos.txt WinGetHandle.txt WinGetProcess.txt WinGetState.txt WinKill.txt WinList.txt WinMenuSelectItem.txt WinMinimizeAll.txt WinMinimizeAllUndo.txt WinSetOnTop.txt WinSetTrans.txt WinWait.txt WinWaitActive.txt WinWaitClose.txt WinWaitNotActive.txt
Probably because that I did not notice this description.
So I propose to add an appropriate description, inside:
<a href="../intro/windowsadvanced.htm"> Title special definition </ a>
Please also consider the deletion of these descriptions, the rest of the files.
I think it will be more flexible/universal solution.
If it is accepted, I will tonight, I can handle this.
comment:5 Changed 11 years ago by Melba23
There is already a comment in the "Window Titles and Text (Basic)" section of the Beta Help file:
Note: If a blank string "" is given for both title and text then the currently Active window will be used (this is not true in some of the more advanced WinTitleMatchModes)'''
I think that is quite adequate and I see no point in having it in both "Basic" and "Advanced" sections.
M23
comment:6 Changed 11 years ago by mlipok
Melba23
As usual, you surprise me.
Therefore propose only to systematize.
As I stated in my previous commentary on some of the files have a description in this area and others do not.
comment:7 Changed 11 years ago by Melba23
mlipok,
"some of the files have a description in this area and others do not"
Ralph Waldo Emerson had the perfect answer to that: http://dictionary.reference.com/browse/a+foolish+consistency+is+the+hobgoblin+of+little+minds
M23
comment:8 Changed 11 years ago by Melba23
- Resolution set to Wont Fix
- Status changed from new to closed
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.
I can not edit so I post again:
At the moment, the use of blank Title I mean = "" is interpreted by AutoIt as [Active]