Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Change background color of edit control in another program

$
0
0
Hi all,

I am using a DB2 client which displays several values in roundabout 20 edit controls.
My script reads some of the values and deletes them under certain conditions.

So far, everything is fine. But to make the changes more visible to the user, I'd like to highlight the edit controls which have their content erased.

My approach was like this:
[ autoit ]      
#include <WinAPI.au3> $title = "Form1" $handle = ControlGetHandle($title, "", "Edit1") $result = _WinAPI_SetBkColor($handle, 0xffff00) ConsoleWrite($result)

Getting the handle seems to work, at least I get a hex number as a result.
But the result of SetBkColor is -1 that means "failed".

Any ideas?

Best regards,
Marc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>