dupa

Author Topic: New X10 commands for x10 use's in VB.  (Read 3088 times)

moreis62

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.myway.com/
New X10 commands for x10 use's in VB.
« on: February 15, 2005, 06:16:20 pm »
Using the XtenWEB.Device class, it is easy to issue commands to X10 modules through the CP290 controller.  The following VBscript is all that is needed to turn on Device A1 and A4:

<%@ LANGUAGE=VBSCRIPT %>
<%
set aDevice=Server.CreateObject("XtenWEB.Device")
aDevice.House="A"
aDevice.Addmodule 1,4
aDevice.DeviceOn
set aDevice=nothing
%>

First, a Device object is created as aDevice.  The House code is set to A, and the modules set as 1 and 4.  The DeviceOn method is then used to turn on both modules A1 and A4.

Similarly, DeviceOff, DeviceDim, and DeviceBrighten can be used to turn the modules off or to dim them.
ISMAEL LEDESMA.

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
New X10 commands for x10 use's in VB.
« Reply #1 on: February 17, 2005, 04:46:14 pm »
with which DLL or plugin do i use that with?