I've read these posts a few times, even looked into the Hal files to see how they work. I didn't get much by looking at the files but I do remember Java script is used in the Hap demo's. The buttons at frist seem like a good idea but it would seem easier to have Hal change the light, move closer ect. Just say it and trigger a hap rather than reach over move the mouse and click to trigger a hap.
Carl2