07-15-2019, 11:33 AM
(07-14-2019, 09:53 PM)kblagron Wrote: I have 4 different TV's and my Sony receiver controlled by 4 different GC-100's using IR.  Actually I went with an GC Itach (IP2IR) on the last one, and it works fine as well.
I found that http://files.remotecentral.com/ is a great resource for the Pronto codes, which CQC allows you to insert for the various commands you want to use in the Client Interface.
I probably should of done what Dean suggested and did a global action, but did mine like the triggered event below: (which turns on the Cameras if motion is detected using the GC-100 - It first checks to see if DirecTV is on, if so, it pauses the programming, then switches input to the turner, changes the channel, and then after a period of time, either switches back or turns off.  As you can see, I put alot of pauses between the commands in order to make it work properly (a lot of trial and error).
Code:If
System::Equals
   P1=$(CQCVar.FrontMotion)
   P2=True
   P3=Case
If
System::Equals
   P1=$(DTV1.Game_Power)
   P2=True
   P3=Case
Devices::FieldWrite
   P1=DTV1.Game_UserCommand
   P2=Pause
   P3=True
System::Pause
   P1=1000
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.Antenna:1
   P3=False
System::Pause
   P1=1000
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.D6:1
   P3=False
System::Pause
   P1=1000
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.D5:1
   P3=False
System::Pause
   P1=1000
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.Enter:1
   P3=False
Else
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.PowerOn:1
   P3=False
System::Pause
   P1=20000
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.Antenna:1
   P3=False
System::Pause
   P1=1000
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.D6:1
   P3=False
System::Pause
   P1=1000
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.D5:1
   P3=False
System::Pause
   P1=1000
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.Enter:1
   P3=False
End
Else
If
System::Equals
   P1=$(DTV1.Game_Power)
   P2=True
   P3=Case
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.Component:1
   P3=False
Else
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.Component:1
   P3=False
System::Pause
   P1=2500
Devices::FieldWrite
   P1=GC4.Invoke
   P2=E472VLE.PowerOff:1
   P3=False
End
End
Thanks!