KeyColor

Public Function KeyColor(loc As Integer) As Integer

 

This procedure is called by HomeSeer if your plug-in supports infrared services.  It is called to query the plug-in to determine if an infrared signal has already been learned or is otherwise present at a given signal location.

 

The value you return is not the actual color displayed by HomeSeer since a graphic image is used on the infrared signals page.

 

If you do not have a KeyColor procedure, HomeSeer will not display an icon representing whether an IR location has a signal in it or not.

 

If you return a zero value, HomeSeer will display a round grayish/black icon representing a location that does not have a signal learned into it (available), and if you return any value greater than zero, then HomeSeer will display a round red icon representing a location that does have a signal present in it.