VB6 or .NET? Also, if the button is flashing is the intermediate background color(when it's not red) the same as the standard background color when the button is not flashing? <font color="red"> <--important because how do you know at any given moment when it's red or not if it's flashing? </font>
You're probably going to need to insert a script at the point you want to determine the color in your VT unless you want to rely on bitmap checking.
Here's an example of how I would get the color and then play around with converting values. You probably just need to determine the hex value of the color your developers are using and then compare it to the hex conversion from the initial long value. This was done with a simple VB6 app but you could do something similar in .NET.
Dim l1, l2 As Long
Dim sfroml As String
Dim i1, i2, i3 As Integer
'This gives you the long color value, not sure its of much use to you.
l1 = VBButton("Name=Command1").Object.BackColor
'Convert it to hex - this is the value you most likely want but will be a string
sfroml = Hex$(l1)
'seperate the rgb values and convert to int - this is likely not needed but good too know.
i1 = CInt("&H" & Left(sfroml, 2)) 'This is the blue
i2 = CInt("&H" & Mid(sfroml, 2, 2)) 'This is the green
i3 = CInt("&H" & Right(sfroml, 2)) 'This is the red
'back to a long
l2 = RGB(i3, i2, i1) 'This should be the same value as l1
I have never tried this, but this may work as a solution:
Run a bitmap check against the button for when it is red with logic to repeat a certain number of times (depending on the timing of the flashing button). Then to run the same check against the non red color with the same logic to repeat.