So I have a whole house fan that I want to automatically start up when three windows are opened. I wanted to create a virtual device and vba code to update it depending on how many windows are open (I have 10). I cannot seem to get a devicestatus update from my windows to update the virtual drive. I am using the ELKM1G plugin to managed the windows statuses.
Example:
Front window open
Dim icount
icount=0
Dim FrontWindow
Frontwindow = hs.devicestatus("'17")
IF Frontwindow = "Normal" Then
icount +1
End If
hs.setdevicestatus "VirtualDevice", icount
Any help would be appreciated.
Example:
Front window open
Dim icount
icount=0
Dim FrontWindow
Frontwindow = hs.devicestatus("'17")
IF Frontwindow = "Normal" Then
icount +1
End If
hs.setdevicestatus "VirtualDevice", icount
Any help would be appreciated.
Comment