home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
IR Server Suite (IRSS)
rotate commands - one button three things
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="teststrips" data-source="post: 267797" data-attributes="member: 69045"><p>My goal is to accomplish the following - I'd like to remap a button to work my lighting system.</p><p>On my first press of the button my movie lights turn on + main lights off</p><p>Second press - all lights off </p><p>third press - main lights on</p><p></p><p>I've accomplished this previously via a batch file, which works great until I use it through translator - it works fine when I manually run it via command prompt, or via double clicking it, but it does not run fine with the built in launcher for some reason. It runs the same command over and over again - batch file code below </p><p></p><p>[CODE]@echo off</p><p>goto option%lights%</p><p></p><p>:option1:</p><p>echo Main lights on</p><p>"C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c2 on</p><p>c:\windows\system32\setx lights 2</p><p>exit</p><p></p><p>:option2:</p><p>echo movie lights ON</p><p>"C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c1 on</p><p>echo main lights off</p><p>"C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c2 off</p><p>c:\windows\system32\setx lights 3</p><p>exit</p><p></p><p>:option3:</p><p>echo movie lights off</p><p>"C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c1 off</p><p>c:\windows\system32\setx lights 1</p><p>exit[/CODE]</p><p></p><p>The Ahcmd.exe is a dos command tool to send X10 commands through my USB X10 Controller CM19a</p><p>Setx is a microsoft tool for setting environmental variables that are persistant (rather than the regular set command, which only sets the variable for the current window) - for some reason the setx command is unable to set the environmental variable for the whole system when run from inside Translator. (operating system = XP pro)</p><p></p><p>I'm not stuck on making my batch file work. If you have an alternate solution to accomplish the same goal, I'm game to try something else.</p></blockquote><p></p>
[QUOTE="teststrips, post: 267797, member: 69045"] My goal is to accomplish the following - I'd like to remap a button to work my lighting system. On my first press of the button my movie lights turn on + main lights off Second press - all lights off third press - main lights on I've accomplished this previously via a batch file, which works great until I use it through translator - it works fine when I manually run it via command prompt, or via double clicking it, but it does not run fine with the built in launcher for some reason. It runs the same command over and over again - batch file code below [CODE]@echo off goto option%lights% :option1: echo Main lights on "C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c2 on c:\windows\system32\setx lights 2 exit :option2: echo movie lights ON "C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c1 on echo main lights off "C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c2 off c:\windows\system32\setx lights 3 exit :option3: echo movie lights off "C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c1 off c:\windows\system32\setx lights 1 exit[/CODE] The Ahcmd.exe is a dos command tool to send X10 commands through my USB X10 Controller CM19a Setx is a microsoft tool for setting environmental variables that are persistant (rather than the regular set command, which only sets the variable for the current window) - for some reason the setx command is unable to set the environmental variable for the whole system when run from inside Translator. (operating system = XP pro) I'm not stuck on making my batch file work. If you have an alternate solution to accomplish the same goal, I'm game to try something else. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
IR Server Suite (IRSS)
rotate commands - one button three things
Contact us
RSS
Top
Bottom