Modify

#892 closed Feature Request (Rejected)

Request for ControlGetColor, ControlGetBkColor

Reported by: tony_balony_1960@… 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 Valik, on Apr 6, 2009 at 5:27:09 PM

Resolution: Rejected
Status: newclosed
Version: 3.3.0.0

There is no standard way of retrieving color information.

comment:2 by anonymous, 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.

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.