Modify

Opened 12 years ago

Closed 12 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 by mlipok, 12 years ago

I can not edit so I post again:

At the moment, the use of blank Title I mean = "" is interpreted by AutoIt as [Active]

comment:2 by TicketCleanup, 12 years ago

Version: 3.3.9.22

Automatic ticket cleanup.

comment:3 by Melba23, 12 years ago

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 by mlipok, 12 years ago

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 by Melba23, 12 years ago

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 by mlipok, 12 years ago

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 by Melba23, 12 years ago

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 by Melba23, 12 years ago

Resolution: Wont Fix
Status: newclosed

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.