X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: stevenb on November 10, 2009, 02:31:30 AM

Title: Problems with ahcmd.exe
Post by: stevenb on November 10, 2009, 02:31:30 AM
I can't seem to get my activehome command line to function. Everytime i try to run it, it gives me a 'ActiveScript Error'. I have a hunch it's got something to do with the fact that when I try to run ahscript_setup.exe, the setup does nothing. Any thoughts?
Title: Re: Problems with ahcmd.exe
Post by: Dan Lawrence on November 10, 2009, 08:29:12 PM
AFAIK, ahcmd.exe is used with a DOS or Command Prompt to send commands.  Example:  achmd send PLC A1 ON to turn lamp module A1 on.

I don't know what ahscript_setup. is, I don't have it on my XP system
Title: Re: Problems with ahcmd.exe
Post by: -Bill- (of wgjohns.com) on November 12, 2009, 02:29:29 AM
ahscript_setup.exe is a file provided in the AHP SDK that installs the basic ActiveX / COM scripting object and maybe the basic CM15A drivers (not so sure about that).

If you have installed the AHP SDK or even AHP itself already, ahscript_setup.exe won't do much for you.

ahcmd.exe is the command line interface for programs that can't handle ActiveX / COM to use to send X10 commands to the CM15A.  It is normally found in the "Program Files\Common Files\X10\Common" folder (or on 64 bit Windows, the "Program Files (x86)\Common Files\X10\Common" folder).

An example of the use of ahcmd.exe is: "ahcmd.exe sendplc a1 on" making sure the active or "Start in" folder is the one containing ahcmd.exe

I just tested this on my Windows Vista 64 bit system with AHP installed, but the AHP SDK not installed.
Title: Re: Problems with ahcmd.exe
Post by: stevenb on November 12, 2009, 04:16:40 PM
Oh, wow.. ok I get it now! I had a "duh" moment.. i was just trying to run the ahcmd.exe from the command window, but I forgot to follow it with an actual command!

Thanks for the help, guys!
Title: Re: Problems with ahcmd.exe
Post by: -Bill- (of wgjohns.com) on November 17, 2009, 12:13:41 AM
Oh, wow.. ok I get it now! I had a "duh" moment.. i was just trying to run the ahcmd.exe from the command window, but I forgot to follow it with an actual command!

Thanks for the help, guys!

Glad to help!

 >!