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: 268023" data-attributes="member: 69045"><p>I figured out another way to do this - i modified my batch file to use temporary files to remember what was done last instead of using environmental variables. I created a folder called batch under c:\ and have my script create and delete files lights1.txt, lights2.txt, and lights3.txt</p><p></p><p>[CODE]@echo off</p><p>if exist c:\batch\lights1.txt goto option1</p><p>if exist c:\batch\lights2.txt goto option2</p><p>if exist c:\batch\lights3.txt goto option3</p><p>echo NO FILE EXISTS</p><p>pause</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>echo 2>c:\batch\lights2.txt</p><p>del c:\batch\lights1.txt</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>echo 3>c:\batch\lights3.txt</p><p>del c:\batch\lights2.txt</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>echo 1>c:\batch\lights1.txt</p><p>del c:\batch\lights3.txt</p><p>exit[/CODE]</p><p></p><p>hooray for DOS <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="teststrips, post: 268023, member: 69045"] I figured out another way to do this - i modified my batch file to use temporary files to remember what was done last instead of using environmental variables. I created a folder called batch under c:\ and have my script create and delete files lights1.txt, lights2.txt, and lights3.txt [CODE]@echo off if exist c:\batch\lights1.txt goto option1 if exist c:\batch\lights2.txt goto option2 if exist c:\batch\lights3.txt goto option3 echo NO FILE EXISTS pause :option1: echo Main lights on "C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c2 on echo 2>c:\batch\lights2.txt del c:\batch\lights1.txt 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 echo 3>c:\batch\lights3.txt del c:\batch\lights2.txt exit :option3: echo movie lights off "C:\Program Files\Common Files\X10\Common\ahcmd.exe" sendrf c1 off echo 1>c:\batch\lights1.txt del c:\batch\lights3.txt exit[/CODE] hooray for DOS :-) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
IR Server Suite (IRSS)
rotate commands - one button three things
Contact us
RSS
Top
Bottom