One more thing. Below is something I
added/modified in Hoylman's SendCommand
function. I don't know if any other dll's
you found have this or not, but Hoylman's
was missing AllOn/AllOff. So I made a case
statement in place of the if for fcCOM and
added them. Those two codes are
undocumented, so it took some digging to
find them. Good luck with your project.
' Lookup and calculate second byte of
instruction
Select Case fcCOM
Case 0 : iCOM2 = &H20 + m_UnitTable(fcUC
Mod
' Off
Case 1 : iCOM2 = m_UnitTable(fcUC Mod
' On
Case 2 : iCOM2 = &H88 ' Bright 14%
Case 3 : iCOM2 = &H98 ' Dim 14%
Case 4 : iCOM2 = &H80 ' All Units Off
Case 5 : iCOM2 = &H90 ' All Lights On
End Select