Opened 17 years ago
Closed 17 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 Changed 17 years ago by TicketCleanup
- Version 3.2.12.0 deleted
comment:2 Changed 17 years ago by Gary
What is wrong with using WinGetState?
comment:3 follow-up: ↓ 6 Changed 17 years ago by 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.
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 Changed 17 years ago by Sheri
How about a new function to handle it: WinVisible()
comment:5 Changed 17 years ago by amokoura
WinVisible() sounds good and the name is very descriptive also.
comment:6 in reply to: ↑ 3 Changed 17 years ago by Valik
- Resolution set to Rejected
- Status changed from new to 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.
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.
Automatic ticket cleanup.