Ok, I could use a little help here, I did some searching on the forums, and see that "Dan the handyman" :unsure: is familiar with AutoIt.
What I am trying to do is control HomeSeer with AutoIt through the Com Interface. (Home seer 1.7x by the way)
I have been successful in getting device status from Home Seer, but can not seem to send a command to it. It is surely something to do with the syntax I am using to do this.
Here is the test script that I have thus far:
.execX10 "A3", "On" , 50
When I run the script, I am getting a message box, with the status of the test device correctly.
AutoIt is choking at the part highlighted in green above.
Once I get this working, my plans are to use the Road Runner Front end to control HS from a Touch screen. Road Runner was developed for CarPC's but is a very powerful program and super easy to work with. Skinning it is just a matter of creating a jpg/png image of your interface, and then in it's skin editor, drawing a box around the buttons or "touch area's" of the image, and entering a command that you want executed when the area you selected is pressed. It also has a COM interface, so using AutoIt I can get info from HS and send to RR and visa versa.
I decided to go this route, as it has all music and video library management/playlists, viewing, weather, traffic, embedded web browser, games, and anything else you could think of already to go! Oh, and did I mention that it is free :lol:
Any help with this is greatly appreciated as always!
What I am trying to do is control HomeSeer with AutoIt through the Com Interface. (Home seer 1.7x by the way)
I have been successful in getting device status from Home Seer, but can not seem to send a command to it. It is surely something to do with the syntax I am using to do this.
Here is the test script that I have thus far:
Code:
$hs = ObjCreate("homeseer.application")
; Get the status of a device (Working)
$MyDevice = $hs.devicestatus("A3")
if $MyDevice = 3 then $MyStatus = "Off"
if $MyDevice = 2 then $MyStatus = "On"
if $MyDevice = 4 then $MyStatus = "Dimmed"
MsgBox(0, "Status", $MyStatus)
; To this point, all above works, Below this line nothing works
; Execute an X10 Command
if $MyDevice = 3 then hs.execX10 "A3", "On" , 50
if $MyDevice = 2 then hs.execX10 "A3", "Off" , 50
.execX10 "A3", "On" , 50
When I run the script, I am getting a message box, with the status of the test device correctly.
AutoIt is choking at the part highlighted in green above.
Once I get this working, my plans are to use the Road Runner Front end to control HS from a Touch screen. Road Runner was developed for CarPC's but is a very powerful program and super easy to work with. Skinning it is just a matter of creating a jpg/png image of your interface, and then in it's skin editor, drawing a box around the buttons or "touch area's" of the image, and entering a command that you want executed when the area you selected is pressed. It also has a COM interface, so using AutoIt I can get info from HS and send to RR and visa versa.
I decided to go this route, as it has all music and video library management/playlists, viewing, weather, traffic, embedded web browser, games, and anything else you could think of already to go! Oh, and did I mention that it is free :lol:
Any help with this is greatly appreciated as always!