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 , 18 years ago
| Version: | 3.2.12.0 |
|---|
follow-up: 6 comment:3 by , 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:6 by , 18 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
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.

Automatic ticket cleanup.