Modify

Opened 18 years ago

Closed 18 years ago

#343 closed Feature Request (Rejected)

Window checks to return only visible windows (option)

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

Description

Opt("WinCheckVisible")

0 = Check all windows (default)
1 = Check only visible windows

The Window checking functions (WinExists() etc.) would work only on visible windows if "WinCheckVisible" is set to 1.

Presumably most of the automation is done on visible windows so only one setting would remove the need of checking the visual state of a window every time.

Attachments (0)

Change History (6)

comment:1 by TicketCleanup, 18 years ago

Version: 3.2.12.0

Automatic ticket cleanup.

comment:2 by Gary, 18 years ago

What is wrong with using WinGetState?

comment:3 by amokoura, 18 years ago

Yes you could use WinGetState but it requires BitAnd(). You could create some kind of a helper function also. It just gets dirty in my opinion.

I assume most of the window automation is done on visible windows and every time a window is hidden, it causes confusion, especially for new AutoItters. Thats why a setting for managing visible windows only would be useful.

comment:4 by Sheri, 18 years ago

How about a new function to handle it: WinVisible()

comment:5 by amokoura, 18 years ago

WinVisible() sounds good and the name is very descriptive also.

in reply to:  3 comment:6 by Valik, 18 years ago

Resolution: Rejected
Status: newclosed

Replying to amokoura:

Yes you could use WinGetState but it requires BitAnd(). You could create some kind of a helper function also. It just gets dirty in my opinion.

If you find writing functions dirty, then stop using programming languages immediately. The proposed "WinVisible" is trivial to write using the tools we've already provided you with. It doesn't need to be built in.

I assume most of the window automation is done on visible windows and every time a window is hidden, it causes confusion, especially for new AutoItters. Thats why a setting for managing visible windows only would be useful.

I think you're wrong here. Given that most of the ways of automating a window work just fine on hidden windows, there's no real need to have the window visible, only in existence. So the assumption most automation is done on visible windows is a very bad assumption.

And lastly, asking for new things to be added to Opt() is a big no-no. It's mentioned as one of the things not to ask for. The penalty is death.

Most definitely closing this as rejected.

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.