Thx,
Can you be more specific about the SDK classes?
Another programmer informed me he had no problems like this when using the SDK classes and you may need to go that route.
I have installed AH SDK but it is unclear to me how to use it...
More precisely it would be great if I manage to intergrate AH SDK into my java project
I'm not sure how helpful this will be as it is actually javascript code and I don't have much experience with writing code for java itself, but here goes:
// Create the X10 object
try {
var X10Obj = new ActiveXObject("X10.ActiveHome");
}
catch(exception) {
alert("This program requires that you have X10's ActiveHome Pro software installed!");
}
// SendCommand(sID, sCommand) function:
// This function uses the X10 object's SendAction() function to send the command via PLC
// sID = the X10 module address (i.e. "A1" - "P16")
// sCommand = the X10 command to send (i.e. "On", "Off", etc.)
function SendCommand(sID, sCommand) {
try {
X10Obj.SendAction( "sendplc", sID + " " + sCommand );
}
catch(exception) {
}
}
I'm not sure how (or indeed if) you can get java to create an instance of an ActiveX or COM object like the above javascript code does.
At any rate, I hope that gives you a few clues, and if you get it working in java, please post back and let all of us know how it is done!
Good luck, and may the programming gods smile upon you!