Opened on Apr 6, 2009 at 3:37:37 PM
Closed on Apr 6, 2009 at 5:27:09 PM
Last modified on Apr 8, 2009 at 10:57:18 PM
#892 closed Feature Request (Rejected)
Request for ControlGetColor, ControlGetBkColor
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | ControlGetColor ControlGetBkColor WinGetColor WinGetBkColor | Cc: |
Description
I've seen a bit of call for this and tried many suggestions and even made my own. It works, sort of, but sometimes gives erroneous results. Of course I used PixelSearch for it, what else could I do with an external application. Even tried the WinAPI Redraw Window thingy someone thought up, but it only seems to work locally, (on running autoit apps, not externally). This is what I think would be nice to have:
ControlGetColor(WinTitle, WinText, ControlHandle)
Results: Returns the foreground color of a control
ControlGetBkColor(WinTitle, WinText, ControlHandle)
Results: Returns the background color of a control
WinGetColor(WinTitle, WinText)
Results: Returns an array of colors for all controls
in a window, ie:
Array[0][0]=Number of elements
Array[1][0]=Control Handle, 1st element
Array[1][1]=Background color
Array[1][2]=Foreground color
Array[2][0]=Control Handle, 2nd element...
WinGetBkColor(WinTitle, WinText)
Results: Returns the background color of a window
That's it. That's my 2 cents worth. BTW, I have to mention that I am very grateful and happy for a programming language as versitile, and FREE, as this. Thanks to you guys. Keep up the great work.
Attachments (0)
Change History (2)
comment:1 by , on Apr 6, 2009 at 5:27:09 PM
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
| Version: | 3.3.0.0 |
comment:2 by , on Apr 8, 2009 at 10:57:18 PM
Gee, aweful nice of you to take as much time as I did in making this request.

There is no standard way of retrieving color information.